Skip to content

Commit

Permalink
Fix issues with type change of themeprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
alasdairwilson committed Oct 4, 2024
1 parent 7142752 commit 1176abd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
3 changes: 2 additions & 1 deletion components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import { SectionLink } from "./ui/LinkedSection"
import { findLinks } from "lib/findSectionLinks"
import PlausibleProvider from "next-plausible"
import { useTheme } from "next-themes"
import { ThemeProvider, CssBaseline } from "@mui/material"
import { ThemeProvider } from "@mui/material/styles"
import { CssBaseline } from "@mui/material"
import { LightTheme, DarkTheme } from "./MuiTheme"

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion components/content/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Heading: React.FC<HeadingProps> = ({ content, section, tag }) => {

const generateHeadingURL = () => {
const href: string = typeof window !== "undefined" ? window.location.href.split("#")[0] : ""
return href + "#" + generateHeadingContent() ?? ""
return href + "#" + generateHeadingContent()
}

const onCopyHandler = () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"prisma": "^4.11.0",
"start-server-and-test": "^2.0.0",
"ts-node": "^10.9.1",
"typescript": "4.8.4"
"typescript": "5.6.2"
},
"packageManager": "[email protected]",
"resolutions": {
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6147,7 +6147,7 @@ __metadata:
swr: ^2.1.0
tailwindcss: ^3.4.13
ts-node: ^10.9.1
typescript: 4.8.4
typescript: 5.6.2
unist-util-visit: ^4.1.1
use-text-selection: ^1.1.5
uuid: ^9.0.0
Expand Down Expand Up @@ -11305,23 +11305,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:4.8.4":
version: 4.8.4
resolution: "typescript@npm:4.8.4"
"typescript@npm:5.6.2":
version: 5.6.2
resolution: "typescript@npm:5.6.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 3e4f061658e0c8f36c820802fa809e0fd812b85687a9a2f5430bc3d0368e37d1c9605c3ce9b39df9a05af2ece67b1d844f9f6ea8ff42819f13bcb80f85629af0
checksum: 48777e1dabd9044519f56cd012b0296e3b72bafe12b7e8e34222751d45c67e0eba5387ecdaa6c14a53871a29361127798df6dc8d1d35643a0a47cb0b1c65a33a
languageName: node
linkType: hard

"typescript@patch:typescript@4.8.4#~builtin<compat/typescript>":
version: 4.8.4
resolution: "typescript@patch:typescript@npm%3A4.8.4#~builtin<compat/typescript>::version=4.8.4&hash=0102e9"
"typescript@patch:typescript@5.6.2#~builtin<compat/typescript>":
version: 5.6.2
resolution: "typescript@patch:typescript@npm%3A5.6.2#~builtin<compat/typescript>::version=5.6.2&hash=d73830"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 301459fc3eb3b1a38fe91bf96d98eb55da88a9cb17b4ef80b4d105d620f4d547ba776cc27b44cc2ef58b66eda23fe0a74142feb5e79a6fb99f54fc018a696afa
checksum: c084ee1ab865f108c787e6233a5f63c126c482c0c8e87ec998ac5288a2ad54b603e1ea8b8b272355823b833eb31b9fabb99e8c6152283e1cb47e3a76bd6faf6c
languageName: node
linkType: hard

Expand Down

0 comments on commit 1176abd

Please sign in to comment.