diff --git a/frontend/pages/docs/index.mdx b/frontend/pages/docs/index.mdx index 75cee4cff..211abfe4f 100644 --- a/frontend/pages/docs/index.mdx +++ b/frontend/pages/docs/index.mdx @@ -1,7 +1,4 @@ import DocsWrapper from 'src/docs/DocsWrapper' -import IntroCard from 'src/docs/IntroCard' -import Box from '@mui/material/Box' -import Grid from '@mui/material/Grid' ## What is Bailo? diff --git a/frontend/pages/help.tsx b/frontend/pages/help.tsx index f5f202a6c..98f5af0f3 100644 --- a/frontend/pages/help.tsx +++ b/frontend/pages/help.tsx @@ -7,7 +7,7 @@ import Button from '@mui/material/Button' import Card from '@mui/material/Card' import CardActions from '@mui/material/CardActions' import CardContent from '@mui/material/CardContent' -import Grid from '@mui/material/Grid' +import Grid2 from '@mui/material/Grid2' import Typography from '@mui/material/Typography' import { useGetUiConfig } from 'actions/uiConfig' import Link from 'next/link' @@ -34,8 +34,8 @@ export default function Help() { Contact us - - + + @@ -57,8 +57,8 @@ export default function Help() { - - + + @@ -77,8 +77,8 @@ export default function Help() { - - + + @@ -99,8 +99,8 @@ export default function Help() { - - + + )} diff --git a/frontend/pages/model/[modelId]/access-request/[accessRequestId]/review.tsx b/frontend/pages/model/[modelId]/access-request/[accessRequestId]/review.tsx index db1d5bea2..b9a4ab807 100644 --- a/frontend/pages/model/[modelId]/access-request/[accessRequestId]/review.tsx +++ b/frontend/pages/model/[modelId]/access-request/[accessRequestId]/review.tsx @@ -1,5 +1,5 @@ import { ArrowBack } from '@mui/icons-material' -import { Button, Card, Container, Divider, Grid, Paper, Stack, Typography } from '@mui/material' +import { Button, Card, Container, Divider, Grid2, Paper, Stack, Typography } from '@mui/material' import { useGetAccessRequest, useGetAccessRequestsForModelId } from 'actions/accessRequest' import { useGetModel } from 'actions/model' import { postReviewResponse, useGetReviewRequestsForModel } from 'actions/review' @@ -60,9 +60,9 @@ export default function AccessRequestReview() { const accessRequestEntities = useMemo(() => { if (accessRequest) { return accessRequest.metadata.overview.entities.map((entity) => ( - + - + )) } }, [accessRequest]) @@ -135,7 +135,7 @@ export default function AccessRequestReview() { Users - {accessRequestEntities} + {accessRequestEntities} diff --git a/frontend/pages/model/[modelId]/access-request/schema.tsx b/frontend/pages/model/[modelId]/access-request/schema.tsx index 346f36f8a..c0d47b910 100644 --- a/frontend/pages/model/[modelId]/access-request/schema.tsx +++ b/frontend/pages/model/[modelId]/access-request/schema.tsx @@ -8,7 +8,7 @@ import { Box, Button, Container, - Grid, + Grid2, Paper, Stack, Typography, @@ -120,9 +120,9 @@ export default function AccessRequestSchema() { - + {modelId && activeSchemaButtons} - + @@ -133,9 +133,9 @@ export default function AccessRequestSchema() { - + {modelId && inactiveSchemaButtons} - + diff --git a/frontend/pages/model/[modelId]/release/[semver]/review.tsx b/frontend/pages/model/[modelId]/release/[semver]/review.tsx index c74180557..78cef072a 100644 --- a/frontend/pages/model/[modelId]/release/[semver]/review.tsx +++ b/frontend/pages/model/[modelId]/release/[semver]/review.tsx @@ -1,5 +1,5 @@ import { ArrowBack } from '@mui/icons-material' -import { Box, Button, Container, Divider, Grid, Paper, Stack, Tooltip, Typography } from '@mui/material' +import { Box, Button, Container, Divider, Grid2, Paper, Stack, Tooltip, Typography } from '@mui/material' import { useGetModel } from 'actions/model' import { useGetRelease, useGetReleasesForModelId } from 'actions/release' import { postReviewResponse, useGetReviewRequestsForModel } from 'actions/review' @@ -65,8 +65,8 @@ export default function ReleaseReview() { const releaseFiles = useMemo(() => { if (release && model) { return release.files.map((file) => ( - - + + @@ -74,11 +74,11 @@ export default function ReleaseReview() { - - + + {prettyBytes(file.size)} - - + + )) } }, [model, release]) diff --git a/frontend/src/Announcement.tsx b/frontend/src/Announcement.tsx index e6d980f55..173f3d00a 100644 --- a/frontend/src/Announcement.tsx +++ b/frontend/src/Announcement.tsx @@ -1,6 +1,6 @@ import { Close } from '@mui/icons-material' import CampaignIcon from '@mui/icons-material/Campaign' -import { Box, Button, Grid, IconButton, Stack, Typography } from '@mui/material' +import { Box, Button, Grid2, IconButton, Stack, Typography } from '@mui/material' import { useTheme } from '@mui/material/styles' import { useMemo, useState } from 'react' interface AnnoucementProps { @@ -47,9 +47,9 @@ export default function Announcement({ message, onClose }: AnnoucementProps) { }} > - - - + + + - - + + - - + + {announcementText} diff --git a/frontend/src/Form/FormTemplates.tsx b/frontend/src/Form/FormTemplates.tsx index 9def2baa5..4657717aa 100644 --- a/frontend/src/Form/FormTemplates.tsx +++ b/frontend/src/Form/FormTemplates.tsx @@ -1,6 +1,6 @@ import AddIcon from '@mui/icons-material/Add' import CloseIcon from '@mui/icons-material/Close' -import { Box, Button, Card, Grid, IconButton, Stack, Tooltip, Typography } from '@mui/material' +import { Box, Button, Card, Grid2, IconButton, Stack, Tooltip, Typography } from '@mui/material' import { ArrayFieldTemplateProps, ObjectFieldTemplateProps } from '@rjsf/utils' export function ArrayFieldTemplate(props: ArrayFieldTemplateProps) { @@ -10,11 +10,11 @@ export function ArrayFieldTemplate(props: ArrayFieldTemplateProps) { {props.title} {props.items.map((element) => ( - - + + {element.children} - - + + {props.formContext.editMode && ( @@ -22,8 +22,8 @@ export function ArrayFieldTemplate(props: ArrayFieldTemplateProps) { )} - - + + ))} {props.canAdd && props.formContext.editMode && (