Browse Source

微修正

develop
sosuke.iwabuchi 2 years ago
parent
commit
6621e3c8f3
2 changed files with 10 additions and 6 deletions
  1. +9
    -5
      src/layouts/dashbord/index.tsx
  2. +1
    -1
      src/pages/dashboard/contract/detail.tsx

+ 9
- 5
src/layouts/dashbord/index.tsx View File

@@ -14,6 +14,7 @@ import useAuth from "hooks/useAuth";
import useNavigateCustom from "hooks/useNavigateCustom"; import useNavigateCustom from "hooks/useNavigateCustom";
import { getPath } from "routes/path"; import { getPath } from "routes/path";
import { PageID } from "pages"; import { PageID } from "pages";
import useBackDrop from "hooks/useBackDrop";


function Copyright() { function Copyright() {
return ( return (
@@ -29,6 +30,8 @@ function App() {


const { navigateWhenChanged } = useNavigateCustom(); const { navigateWhenChanged } = useNavigateCustom();


const { setShowBackDrop } = useBackDrop();

const [mobileOpen, setMobileOpen] = useState(false); const [mobileOpen, setMobileOpen] = useState(false);


const { drawerWidth, innerWidth, contentsWidth } = useDashboard(); const { drawerWidth, innerWidth, contentsWidth } = useDashboard();
@@ -37,16 +40,17 @@ function App() {
setMobileOpen(!mobileOpen); setMobileOpen(!mobileOpen);
}; };


console.log("へい");
useEffect(() => {
setShowBackDrop(!initialized);
if (initialized && !authenticated) {
navigateWhenChanged(getPath(PageID.PAGE_403));
}
}, [initialized, authenticated]);


if (!initialized) { if (!initialized) {
return null; return null;
} }


if (!authenticated) {
navigateWhenChanged(getPath(PageID.PAGE_403));
}

return ( return (
<Box sx={{ display: "flex", minHeight: "100vh" }}> <Box sx={{ display: "flex", minHeight: "100vh" }}>
<Box <Box


+ 1
- 1
src/pages/dashboard/contract/detail.tsx View File

@@ -74,8 +74,8 @@ export default function ContractDetail() {
<TableCell>支払済み</TableCell> <TableCell>支払済み</TableCell>
</TableRow> </TableRow>
</TableBody> </TableBody>
<Button>更に表示</Button>
</Table> </Table>
<Button>更に表示</Button>
</Paper> </Paper>
<Paper sx={{ p: 2 }}> <Paper sx={{ p: 2 }}>
<Typography variant="h5">各種申請</Typography> <Typography variant="h5">各種申請</Typography>


Loading…
Cancel
Save