mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Rename class
This commit is contained in:
@@ -69,7 +69,7 @@ const HiddenSpan = styled("span")({
|
||||
width: 1,
|
||||
})
|
||||
|
||||
function DataGrid2<T>(props: {
|
||||
function DataGrid<T>(props: {
|
||||
data: T[]
|
||||
columns: ColumnDef<T>[]
|
||||
}): React.ReactElement {
|
||||
@@ -377,4 +377,4 @@ const PaginationForm1: React.FC<{
|
||||
)
|
||||
}
|
||||
|
||||
export { DataGrid2 }
|
||||
export { DataGrid }
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
useTheme,
|
||||
} from "@mui/material"
|
||||
import Grid2 from "@mui/material/Unstable_Grid2"
|
||||
import { DataGrid2 } from "../DataGrid"
|
||||
import { DataGrid } from "../DataGrid"
|
||||
import { BestTrialsCard } from "../BestTrialsCard"
|
||||
import { useStudyDetailValue, useStudySummaryValue } from "../../state"
|
||||
import { Contour } from "../GraphContour"
|
||||
@@ -70,7 +70,7 @@ export const PreferentialAnalytics: FC<{ studyId: number }> = ({ studyId }) => {
|
||||
>
|
||||
Study User Attributes
|
||||
</Typography>
|
||||
<DataGrid2 data={userAttrs} columns={columns} />
|
||||
<DataGrid data={userAttrs} columns={columns} />
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Grid2>
|
||||
|
||||
@@ -10,8 +10,7 @@ import {
|
||||
import FormControlLabel from "@mui/material/FormControlLabel"
|
||||
import Grid2 from "@mui/material/Unstable_Grid2"
|
||||
import * as Optuna from "@optuna/types"
|
||||
import React, { FC, useState } from "react"
|
||||
import { DataGrid2 } from "./DataGrid"
|
||||
import { DataGrid } from "./DataGrid"
|
||||
import { GraphHyperparameterImportance } from "./GraphHyperparameterImportances"
|
||||
import { UserDefinedPlot } from "./UserDefinedPlot"
|
||||
import { BestTrialsCard } from "./BestTrialsCard"
|
||||
@@ -169,7 +168,7 @@ export const StudyHistory: FC<{ studyId: number }> = ({ studyId }) => {
|
||||
>
|
||||
Study User Attributes
|
||||
</Typography>
|
||||
<DataGrid2 data={userAttrs} columns={columns} />
|
||||
<DataGrid data={userAttrs} columns={columns} />
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Grid2>
|
||||
|
||||
@@ -6,7 +6,7 @@ import LinkIcon from "@mui/icons-material/Link"
|
||||
import { Button, IconButton, useTheme } from "@mui/material"
|
||||
import React, { FC } from "react"
|
||||
|
||||
import { DataGrid2 } from "./DataGrid"
|
||||
import { DataGrid } from "./DataGrid"
|
||||
import { Link } from "react-router-dom"
|
||||
import { StudyDetail, Trial } from "ts/types/optuna"
|
||||
import { DataGrid, DataGridColumn } from "./DataGrid"
|
||||
@@ -151,7 +151,7 @@ export const TrialTable: FC<{
|
||||
|
||||
return (
|
||||
<>
|
||||
<DataGrid2 data={trials} columns={tcolumns} />
|
||||
<DataGrid data={trials} columns={tcolumns} />
|
||||
<Button
|
||||
variant="outlined"
|
||||
startIcon={<DownloadIcon />}
|
||||
|
||||
Reference in New Issue
Block a user