Skip to content

Commit

Permalink
fix: Resolve build issue with latest MUI version
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed May 22, 2023
1 parent adb6d53 commit 0edd1f5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
6 changes: 3 additions & 3 deletions editor.planx.uk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"@feedback-fish/react": "^1.2.1",
"@material-ui/core": "^4.12.4",
"@mui/icons-material": "^5.11.16",
"@mui/material": "5.11.13",
"@mui/styles": "5.11.13",
"@mui/utils": "5.11.13",
"@mui/material": "5.12.3",
"@mui/styles": "5.12.3",
"@mui/utils": "5.12.3",
"@opensystemslab/map": "^0.7.4",
"@opensystemslab/planx-core": "github:theopensystemslab/planx-core#026f43f",
"@opensystemslab/planx-document-templates": "github:theopensystemslab/planx-document-templates#debaeca",
Expand Down
42 changes: 21 additions & 21 deletions editor.planx.uk/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions editor.planx.uk/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const BreadcrumbsRoot = styled(Box)(() => ({
fontSize: 20,
}));

const BreadcrumbLink = styled(ReactNaviLink)(() => ({
const StyledLink = styled(ReactNaviLink)(() => ({
color: "#fff",
textDecoration: "none",
}));
})) as typeof Link;

const StyledToolbar = styled(MuiToolbar)(({ theme }) => ({
paddingLeft: theme.spacing(4),
Expand Down Expand Up @@ -190,25 +190,25 @@ const Breadcrumbs: React.FC<{
{route.data.team && (
<>
{" / "}
<Link
component={BreadcrumbLink}
<StyledLink
component={ReactNaviLink}
href={`/${route.data.team}`}
prefetch={false}
>
{route.data.team}
</Link>
</StyledLink>
</>
)}
{route.data.flow && (
<>
{" / "}
<Link
component={BreadcrumbLink}
<StyledLink
component={ReactNaviLink}
href={rootFlowPath(false)}
prefetch={false}
>
{route.data.flow}
</Link>
</StyledLink>
</>
)}
</BreadcrumbsRoot>
Expand Down

0 comments on commit 0edd1f5

Please sign in to comment.