Skip to content

Commit

Permalink
Remove modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir-Urik committed Mar 17, 2024
1 parent 53d2ea4 commit 0de4a18
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 77 deletions.
10 changes: 1 addition & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ import {Section} from './components/Section';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faDiscord, faGithub} from '@fortawesome/free-brands-svg-icons';
import {faEnvelope, faPlus} from '@fortawesome/free-solid-svg-icons';
import {AddServerModal} from './components/modals/AddServerModal';
import {Fade} from 'react-awesome-reveal';

export const App = () => {
const [addServer, setAddServer] = React.useState(false);

return (
<ChakraProvider theme={theme}>
<Header />
Expand All @@ -36,9 +33,7 @@ export const App = () => {
</Flex>

<Fade direction={'up'} triggerOnce={true}>
<Button onClick={() => {
setAddServer(true);
}} variant={'outline'} marginTop={8} colorScheme={'red'} leftIcon={<FontAwesomeIcon icon={faPlus} />}>Přidat server</Button>
<Button as={'a'} href={'https://docs.google.com/forms/d/e/1FAIpQLSf5Igw_euENs9LtnXFRO7bcUKfZRQapvJylUOEGCnZMDECGhg/viewform'} variant={'outline'} marginTop={8} colorScheme={'red'} leftIcon={<FontAwesomeIcon icon={faPlus} />}>Přidat server</Button>

<Divider margin={'50px auto'} width={'80px'} backgroundColor={'brand.100'} borderColor={'brand.100'} opacity={1} height={1} rounded={'md'} />
</Fade>
Expand Down Expand Up @@ -80,9 +75,6 @@ export const App = () => {
</Box>
</Flex>
</Flex>
<AddServerModal isOpen={addServer} onClose={() => {
setAddServer(false);
}} />
</ChakraProvider>
);
};
17 changes: 0 additions & 17 deletions src/components/modals/AddServerModal/Paragraph/index.tsx

This file was deleted.

51 changes: 0 additions & 51 deletions src/components/modals/AddServerModal/index.tsx

This file was deleted.

0 comments on commit 0de4a18

Please sign in to comment.