Skip to content

Commit

Permalink
Modify the type that is exposed for createTheme, should be faster for…
Browse files Browse the repository at this point in the history
… TypeScript to check.
  • Loading branch information
paales committed Jan 3, 2025
1 parent 910e6aa commit 8f047a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-baboons-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/next-ui': patch
---

Modify the type that is exposed for createTheme, should be faster for TypeScript to check.
3 changes: 2 additions & 1 deletion examples/magento-graphcms/components/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import {
breakpointVal,
createTheme,
MuiButtonInline,
MuiButtonPill,
MuiButtonResponsive,
Expand All @@ -13,7 +14,7 @@ import {
responsiveVal,
themeBaseDefaults,
} from '@graphcommerce/next-ui'
import { alpha, createTheme, LinkProps, Theme } from '@mui/material'
import { alpha, LinkProps, Theme } from '@mui/material'
import { Components, PaletteOptions } from '@mui/material/styles'

const lightPalette: PaletteOptions = {
Expand Down
3 changes: 2 additions & 1 deletion examples/magento-open-source/components/theme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// <reference types="@graphcommerce/next-ui/types" />
import {
breakpointVal,
createTheme,
MuiButtonInline,
MuiButtonPill,
MuiButtonResponsive,
Expand All @@ -13,7 +14,7 @@ import {
themeBaseDefaults,
} from '@graphcommerce/next-ui'
import type { LinkProps, Theme } from '@mui/material'
import { alpha, createTheme } from '@mui/material'
import { alpha } from '@mui/material'
import type { Components, PaletteOptions } from '@mui/material/styles'

const lightPalette: PaletteOptions = {
Expand Down

0 comments on commit 8f047a0

Please sign in to comment.