Skip to content

Commit

Permalink
Fix Prettier workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy committed Jul 20, 2023
1 parent 184100b commit 1755fb8
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions src/components/banners/NearconBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,39 +81,42 @@ const Text = styled.p<TextProps>`
`;

export const NearconBanner = () => {
const [ isBannerVisible, setBanners ] = useBanner();
const [isBannerVisible, setBanners] = useBanner();

const closeBanner = () => {
setBanners(!isBannerVisible);
}
};

if (!isBannerVisible) return null;

return (
<Wrapper>
<Flex gap="24px" alignItems="center" justifyContent="center">
<Image src={icon} alt='nearcon-banner' />
<Text size="16px" weight="500" className='d-none d-sm-inline'>Early Bird Tickets are live!</Text>
<Link href='http://nearcon.org' target='_blank' className='d-none d-sm-inline banner-button desktop-button'>
<Button
label='View'
iconRight='ph-bold ph-arrow-right'
variant='primary'
fill='outline'
size='small'
/>
<Image src={icon} alt="nearcon-banner" />
<Text size="16px" weight="500" className="d-none d-sm-inline">
Early Bird Tickets are live!
</Text>
<Link href="http://nearcon.org" target="_blank" className="d-none d-sm-inline banner-button desktop-button">
<Button label="View" iconRight="ph-bold ph-arrow-right" variant="primary" fill="outline" size="small" />
</Link>

<Link href='http://nearcon.org' target='_blank' className='d-inline d-sm-none banner-button mobile-button'>
<Link href="http://nearcon.org" target="_blank" className="d-inline d-sm-none banner-button mobile-button">
<Button
label='Early Bird Tickets'
iconRight='ph-bold ph-arrow-right'
variant='primary'
fill='outline'
size='small'
label="Early Bird Tickets"
iconRight="ph-bold ph-arrow-right"
variant="primary"
fill="outline"
size="small"
/>
</Link>
<Button type="button" onClick={closeBanner} label='Close' icon='ph-fill ph-x-circle' size='small' className='close-button' />
<Button
type="button"
onClick={closeBanner}
label="Close"
icon="ph-fill ph-x-circle"
size="small"
className="close-button"
/>
</Flex>
</Wrapper>
);
Expand Down

0 comments on commit 1755fb8

Please sign in to comment.