Skip to content

Commit

Permalink
add ArchivalNoticeModal
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushkh committed Dec 27, 2023
1 parent 16dbde0 commit 41c90c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -10,7 +10,7 @@
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.13.1",
"@the-collab-lab/shopping-list-utils": "^2.0.0",
"@the-collab-lab/shopping-list-utils": "^2.2.0",
"firebase": "^9.17.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
4 changes: 3 additions & 1 deletion src/views/Home.jsx
Expand Up @@ -18,6 +18,7 @@ import { useState } from 'react';
import { validateToken } from '../api/firebase';
import Toastify from 'toastify-js';
import 'toastify-js/src/toastify.css';
import { ArchivalNoticeModal } from '@the-collab-lab/shopping-list-utils';

export function Home({ setListToken }) {
const [userTokenInput, setUserTokenInput] = useState('');
Expand Down Expand Up @@ -63,7 +64,7 @@ export function Home({ setListToken }) {
fontSize: '2em',
minWidth: '20ch',
}}
onClick={handleClick}
onClick={() => console.log('Creating new lists is disabled')}
>
Create list
</Button>
Expand Down Expand Up @@ -109,6 +110,7 @@ export function Home({ setListToken }) {
</Stack>
</Box>
{tokenExists && <Navigate to="/list" replace={true}></Navigate>}
<ArchivalNoticeModal />
</Stack>
);
}

0 comments on commit 41c90c1

Please sign in to comment.