Fixed community links opening in a new tab, newsletter widget appearing in mdx view.

This commit is contained in:
Piotr Janosz
2019-07-25 11:43:33 +02:00
committed by fabioberger
parent 00ab5f0afb
commit 4a39eb7931
3 changed files with 5 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ export interface ICommunityLinkProps {
}
export const CommunityLink: React.FC<ICommunityLinkProps> = props => (
<CommunityLinkWrapper to={props.url}>
<CommunityLinkWrapper to={props.url} shouldOpenInNewTab={true}>
<CommunityIcon color={colors.brandLight} name={props.icon} margin={[0, 0, 24, 0]} />
<Heading size="small" marginBottom="8px">
{props.heading}

View File

@@ -3,9 +3,10 @@ import styled from 'styled-components';
import { CommunityLink, ICommunityLinkProps } from 'ts/components/docs/community_link';
import { GetStartedLink, IGetStartedLinkProps } from 'ts/components/docs/get_started_link';
import { Separator } from 'ts/components/docs/separator';
import { IShortcutLinkProps, ShortcutLink } from 'ts/components/docs/shortcut_link';
import { IStepLinkConfig } from 'ts/components/docs/step_link';
import { Separator } from 'ts/components/docs/separator';
import { StepLinks } from 'ts/components/docs/step_links';
import { Heading } from 'ts/components/text';

View File

@@ -19,6 +19,7 @@ import { Columns } from 'ts/components/docs/layout/columns';
import { ContentWrapper } from 'ts/components/docs/layout/content_wrapper';
import { DocsPageLayout } from 'ts/components/docs/layout/docs_page_layout';
import { NewsletterWidget } from 'ts/components/docs/newsletter_widget';
import { Separator } from 'ts/components/docs/separator';
import { IContents, TableOfContents } from 'ts/components/docs/sidebar/table_of_contents';
@@ -74,6 +75,7 @@ export const DocsView: React.FC<IDocsViewProps> = props => {
// @ts-ignore */}
<Component />
</MDXProvider>
<NewsletterWidget />
<HelpCallout />
<HelpfulCta page={page} />
</ContentWrapper>