Pārlūkot izejas kodu

微修正

develop
sosuke.iwabuchi pirms 2 gadiem
vecāks
revīzija
6621e3c8f3
2 mainītis faili ar 10 papildinājumiem un 6 dzēšanām
  1. +9
    -5
      src/layouts/dashbord/index.tsx
  2. +1
    -1
      src/pages/dashboard/contract/detail.tsx

+ 9
- 5
src/layouts/dashbord/index.tsx Parādīt failu

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

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

const { navigateWhenChanged } = useNavigateCustom();

const { setShowBackDrop } = useBackDrop();

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

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

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

if (!initialized) {
return null;
}

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

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


+ 1
- 1
src/pages/dashboard/contract/detail.tsx Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt