File tree Expand file tree Collapse file tree 5 files changed +1093
-175
lines changed
app/components/Detail/components/Section/components/AtlasSection Expand file tree Collapse file tree 5 files changed +1093
-175
lines changed Original file line number Diff line number Diff line change 11import { SectionTitle } from "@databiosphere/findable-ui/lib/components/common/Section/components/SectionTitle/sectionTitle" ;
22import { TEXT_BODY_400 } from "@databiosphere/findable-ui/lib/theme/common/typography" ;
3- import { Grid2 , Typography } from "@mui/material" ;
3+ import { Grid , Typography } from "@mui/material" ;
44import { NetworkIcon } from "../../../../../common/NetworkIcon/networkIcon" ;
55import { StyledSection } from "./atlasSection.styles" ;
66import { GRID_PROPS } from "./constants" ;
@@ -13,21 +13,21 @@ interface AtlasProps {
1313export const AtlasSection = ( { atlases } : AtlasProps ) : JSX . Element => {
1414 return (
1515 < StyledSection >
16- < Grid2 { ...GRID_PROPS . COLUMN } spacing = { 4 } >
16+ < Grid { ...GRID_PROPS . COLUMN } spacing = { 4 } >
1717 < SectionTitle title = "Atlas" />
18- < Grid2 { ...GRID_PROPS . COLUMN } spacing = { 2 } >
18+ < Grid { ...GRID_PROPS . COLUMN } spacing = { 2 } >
1919 { atlases . length > 0 ? (
2020 atlases . map ( ( { atlasName, networkKey } , i ) => (
21- < Grid2 key = { i } alignItems = "center" container spacing = { 2 } >
21+ < Grid key = { i } alignItems = "center" container spacing = { 2 } >
2222 < NetworkIcon networkKey = { networkKey } />
2323 < Typography variant = { TEXT_BODY_400 } > { atlasName } </ Typography >
24- </ Grid2 >
24+ </ Grid >
2525 ) )
2626 ) : (
2727 < Typography variant = { TEXT_BODY_400 } > None</ Typography >
2828 ) }
29- </ Grid2 >
30- </ Grid2 >
29+ </ Grid >
30+ </ Grid >
3131 </ StyledSection >
3232 ) ;
3333} ;
Original file line number Diff line number Diff line change 1- import { Grid2Props } from "@mui/material" ;
1+ import { GridProps } from "@mui/material" ;
22
33export const GRID_PROPS : Record <
44 string ,
5- Partial < Omit < Grid2Props , "component" > >
5+ Partial < Omit < GridProps , "component" > >
66> = {
77 COLUMN : { container : true , direction : "column" } ,
88} ;
You can’t perform that action at this time.
0 commit comments