Skip to content

Commit

Permalink
fix: fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielizzy committed Dec 13, 2022
1 parent 37440d6 commit 6bcac55
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/components/molecules/ZopaFooter/ZopaFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@ const StyledLink = styled(Link)`
${footerLinkStyle}
`;

const MainZopaLegalCopy = () => {
const theme = useThemeContext();
return (
<Text as="p" color={theme.footer.legalBlock.color} size="small" className="mb-4">
Zopa Bank Limited is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct
Authority and the Prudential Regulation Authority, and entered on the Financial Services Register (800542). Zopa
Bank Limited (10627575) is incorporated in England &amp; Wales and has its registered office at: 1st Floor,
Cottons Centre, Tooley Street, London, SE1 2QG.
</Text>
);
};

const MainCustomLegalCopy = ({ copy }: Record<'copy', string>) => {
const theme = useThemeContext();
return (
<Text as="p" color={theme.footer.legalBlock.color} size="small" className="mb-4">
{copy}
</Text>
);
};

const ZopaFooter = ({
baseUrl = 'https://www.zopa.com',
renderLink = (props: LinkProps) => <StyledLink {...props} />,
Expand Down Expand Up @@ -208,25 +229,4 @@ const ZopaFooter = ({
);
};

const MainZopaLegalCopy = () => {
const theme = useThemeContext();
return (
<Text as="p" color={theme.footer.legalBlock.color} size="small" className="mb-4">
Zopa Bank Limited is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct
Authority and the Prudential Regulation Authority, and entered on the Financial Services Register (800542). Zopa
Bank Limited (10627575) is incorporated in England &amp; Wales and has its registered office at: 1st Floor,
Cottons Centre, Tooley Street, London, SE1 2QG.
</Text>
);
}

const MainCustomLegalCopy = ({ copy }: Record<'copy', string>) => {
const theme = useThemeContext();
return (
<Text as="p" color={theme.footer.legalBlock.color} size="small" className="mb-4">
{copy}
</Text>
);
}

export default ZopaFooter;

0 comments on commit 6bcac55

Please sign in to comment.