Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 16c0339

Browse files
committed
ADDS copyright disclaimer to API and Instant pages in footer
1 parent 77ce3de commit 16c0339

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

ts/components/footer.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ const linkRows: LinkRows[] = [
7474

7575
interface IFooterProps {
7676
isDocs?: boolean;
77+
shouldShowDisclaimer?: boolean;
7778
}
7879

79-
export const Footer: React.FC<IFooterProps> = React.memo(({ isDocs }) => (
80+
export const Footer: React.FC<IFooterProps> = React.memo(({ isDocs, shouldShowDisclaimer }) => (
8081
<FooterWrap isDocs={isDocs}>
8182
<FlexWrap>
8283
<FooterColumn width="35%">
@@ -99,6 +100,13 @@ export const Footer: React.FC<IFooterProps> = React.memo(({ isDocs }) => (
99100
</WrapGrid>
100101
</FooterColumn>
101102
</FlexWrap>
103+
{
104+
shouldShowDisclaimer && (
105+
<FlexWrap>
106+
<Text>We provide downloadable software and software services.</Text>
107+
</FlexWrap>
108+
)
109+
}
102110
</FooterWrap>
103111
));
104112

ts/components/siteWrap.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { GLOBAL_THEMES } from 'ts/style/theme';
1010
interface ISiteWrapProps {
1111
theme?: 'dark' | 'light' | 'gray' | 'staking';
1212
isDocs?: boolean;
13+
shouldShowDisclaimerInFooter?: boolean;
1314
headerComponent?: any;
1415
isFullScreen?: boolean;
1516
children: any;
@@ -21,7 +22,7 @@ interface IMainProps {
2122
}
2223

2324
export const SiteWrap: React.FC<ISiteWrapProps> = props => {
24-
const { children, theme = 'dark', isDocs, isFullScreen, headerComponent } = props;
25+
const { children, theme = 'dark', isDocs, isFullScreen, headerComponent, shouldShowDisclaimerInFooter } = props;
2526
const [isMobileNavOpen, setIsMobileNavOpen] = React.useState<boolean>(false);
2627

2728
React.useEffect(() => {
@@ -44,7 +45,7 @@ export const SiteWrap: React.FC<ISiteWrapProps> = props => {
4445
{children}
4546
</Main>
4647

47-
<Footer isDocs={isDocs} />
48+
<Footer isDocs={isDocs} shouldShowDisclaimer={shouldShowDisclaimerInFooter} />
4849
</>
4950
</ThemeProvider>
5051
);

ts/pages/api.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const ZeroExApi: React.FC<ApiPageProps> = () => {
7474
}, [quoteEndpoint]);
7575

7676
return (
77-
<SiteWrap theme="dark">
77+
<SiteWrap theme="dark" shouldShowDisclaimerInFooter={true}>
7878
<DocumentTitle {...documentConstants.API} />
7979
<Hero
8080
title="Access all DEX liquidity through one API"

ts/pages/instant.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class Next0xInstant extends React.Component<Props> {
9393
}
9494
public render(): React.ReactNode {
9595
return (
96-
<SiteWrap>
96+
<SiteWrap shouldShowDisclaimerInFooter={true}>
9797
<DocumentTitle {...documentConstants.INSTANT} />
9898
<Hero
9999
title="Introducing 0x Instant"

0 commit comments

Comments
 (0)