Revize f2733d24
Přidáno uživatelem Václav Honzík před téměř 3 roky(ů)
frontend/src/App.tsx | ||
---|---|---|
26 | 26 |
<Box sx={{ mx: 10 }}> |
27 | 27 |
<Routes> |
28 | 28 |
<Route path="/" element={<Home />} /> |
29 |
<Route path="/editHome" element={<EditHome />} /> |
|
29 | 30 |
<Route path="/catalog" element={<Catalog />} /> |
30 | 31 |
<Route |
31 | 32 |
path="/catalog/:itemId" |
frontend/src/features/Auth/LoginDialog.tsx | ||
---|---|---|
14 | 14 |
import { logIn } from './userThunks' |
15 | 15 |
import { RootState } from '../redux/store' |
16 | 16 |
import { resetLoggingIn } from './userSlice' |
17 |
import { Box } from '@mui/system' |
|
17 | 18 |
|
18 |
export interface CreateIndexDialogProps {
|
|
19 |
export interface LoginDialogProps {
|
|
19 | 20 |
maxWidth?: DialogProps['maxWidth'] |
20 | 21 |
} |
21 | 22 |
|
22 |
const LoginDialog: FunctionComponent<CreateIndexDialogProps> = ({
|
|
23 |
const LoginDialog: FunctionComponent<LoginDialogProps> = ({
|
|
23 | 24 |
maxWidth, |
24 | 25 |
}) => { |
25 | 26 |
const [open, setOpen] = useState(true) |
... | ... | |
107 | 108 |
/> |
108 | 109 |
<Fragment> |
109 | 110 |
<Button |
111 |
sx={{mb: 2}} |
|
110 | 112 |
type="submit" |
111 | 113 |
variant="contained" |
112 | 114 |
fullWidth |
... | ... | |
120 | 122 |
<Link component={RouterLink} to="/resetPassword"> |
121 | 123 |
Forgot password? |
122 | 124 |
</Link> |
125 |
<Box sx={{mb: 1}} /> |
|
123 | 126 |
</DialogContent> |
124 | 127 |
</Dialog> |
125 | 128 |
</Fragment> |
Také k dispozici: Unified diff
hotfix edit home broke after merge