Skip to content

Commit

Permalink
prettier:
Browse files Browse the repository at this point in the history
  • Loading branch information
charleslavon committed Jul 20, 2023
1 parent 81f3d61 commit 4366da0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 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,38 +81,41 @@ 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
1 change: 0 additions & 1 deletion src/components/layouts/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { NearconBanner } from '../banners/NearconBanner';
import { BosLoaderBanner } from '../BosLoaderBanner';
import { Navigation } from '../navigation/Navigation';


interface Props {
children: ReactNode;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/sandbox/Search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { OverlayTrigger, Tooltip } from 'react-bootstrap';
import { VmComponent } from '@/components/vm/VmComponent';
import { Filetype } from '../utils/const';


const Search = ({ widgets, tos, logOut, loadAndOpenFile, refs, refSearch, disable }) => {
return (
<>
Expand Down

0 comments on commit 4366da0

Please sign in to comment.