({children, ...formProps})
| 19 | } |
| 20 | |
| 21 | export function AuthCard({children, ...formProps}) { |
| 22 | return ( |
| 23 | <Box sx={{ |
| 24 | minHeight: 'calc(100vh - 60px)', |
| 25 | display: 'flex', |
| 26 | alignItems: 'center', |
| 27 | justifyContent: 'center', |
| 28 | px: 2, |
| 29 | py: 4, |
| 30 | }}> |
| 31 | <Paper |
| 32 | component={Form} |
| 33 | elevation={0} |
| 34 | {...formProps} |
| 35 | sx={{ |
| 36 | width: '100%', |
| 37 | maxWidth: 430, |
| 38 | bgcolor: (theme) => theme.palette.surface, |
| 39 | borderRadius: 3, |
| 40 | p: {xs: 3, sm: 4}, |
| 41 | display: 'flex', |
| 42 | flexDirection: 'column', |
| 43 | gap: 2, |
| 44 | }} |
| 45 | > |
| 46 | {children} |
| 47 | </Paper> |
| 48 | </Box> |
| 49 | ); |
| 50 | } |
| 51 | |
| 52 | export function AuthHeader({subtitle}) { |
| 53 | const dark = useTheme().palette.mode === 'dark'; |
nothing calls this directly
no outgoing calls
no test coverage detected