|
|
@@ -12,8 +12,6 @@ import TablePagination, { |
|
|
|
} from "@mui/material/TablePagination"; |
|
|
|
import TableRow from "@mui/material/TableRow"; |
|
|
|
import IconButton from "@mui/material/IconButton"; |
|
|
|
import { ThemeProvider, createTheme } from "@mui/material"; |
|
|
|
import { zhTW, enUS } from '@mui/material/locale'; |
|
|
|
|
|
|
|
export interface ResultWithId { |
|
|
|
id: string | number; |
|
|
@@ -67,18 +65,8 @@ function SearchResults<T extends ResultWithId>({ |
|
|
|
setPage(0); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const theme = createTheme( |
|
|
|
|
|
|
|
// locale |
|
|
|
//TODO: May need to know what locale the client is using |
|
|
|
// localStorage.getItem("locale")?.includes("zh") ? zhTW : enUS |
|
|
|
zhTW |
|
|
|
); |
|
|
|
|
|
|
|
const table = ( |
|
|
|
<> |
|
|
|
<ThemeProvider theme={theme}> |
|
|
|
<TableContainer sx={{ maxHeight: 440 }}> |
|
|
|
<Table stickyHeader> |
|
|
|
<TableHead> |
|
|
@@ -129,7 +117,6 @@ function SearchResults<T extends ResultWithId>({ |
|
|
|
onPageChange={handleChangePage} |
|
|
|
onRowsPerPageChange={handleChangeRowsPerPage} |
|
|
|
/> |
|
|
|
</ThemeProvider> |
|
|
|
</> |
|
|
|
); |
|
|
|
|
|
|
|