Rename Dashboard to Entries

This commit is contained in:
Mustafa Gezen 2023-08-28 16:56:34 +02:00
parent 5a0bc51c43
commit 4430fb562d
Signed by: mustafa
GPG Key ID: DCDF010D946438C1
2 changed files with 9 additions and 9 deletions

View File

@ -15,19 +15,15 @@
*/
import React from 'react';
import { Link, Route, Routes } from 'react-router-dom';
import { Link, Navigate, Route, Routes } from 'react-router-dom';
import AppBar from '@mui/material/AppBar';
import Box from '@mui/material/Box';
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import Button from '@mui/material/Button';
import { Theme } from '@mui/material/styles';
import DashboardIcon from '@mui/icons-material/Dashboard';
import ListAltIcon from '@mui/icons-material/ListAlt';
import { Dashboard } from './Dashboard';
import { Drawer } from 'base/ts/mui/Drawer';
import { GetEntry } from 'tools/mothership/ui/GetEntry';
import { Entries } from 'tools/mothership/ui/Entries';
export const App = () => {
return (
@ -51,7 +47,11 @@ export const App = () => {
<Box component="main" sx={{ p: 3, flexGrow: 1 }}>
<Toolbar variant="dense" />
<Routes>
<Route index element={<Dashboard />} />
<Route index element={<Navigate to="/entries" replace />} />
<Route path="/entries">
<Route index element={<Entries />} />
<Route path=":name" element={<GetEntry />} />
</Route>
</Routes>
</Box>
</Box>

View File

@ -24,7 +24,7 @@ import {
} from 'bazel-bin/tools/mothership/proto/v1/mothershippb_ts_proto_gen';
import { reqap } from 'base/ts/reqap';
export const Dashboard = () => {
export const Entries = () => {
return (
<ResourceTable<V1Entry>
load={(pageSize: number, pageToken?: string) => reqap(srpmArchiverApi.listEntries({