Browse Source

Add types

pull/3/head
Vincent Lecrubier 1 year ago
committed by GitHub
parent
commit
4749e5e14d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      landing-blocks/src/LandingProvider.tsx

+ 3
- 2
landing-blocks/src/LandingProvider.tsx View File

@ -22,6 +22,7 @@ export type LandingProviderProps = {
white?: string
secondary?: string
pageWidth?: string
theme?: typeof chakraTheme
children?: any
} & FlexProps
@ -45,8 +46,8 @@ export function LandingProvider({
secondary = 'purple',
pageWidth = '1200px',
fontFamily = 'Roboto, system-ui, sans-serif',
theme: themeProp = {},
children,
theme: themeProp,
...rest
}: LandingProviderProps) {
const { colorMode } = useColorMode()
@ -77,7 +78,7 @@ export function LandingProvider({
subtext: '15px',
},
},
themeProp || {}
themeProp
)
),
[pageWidth, primary, secondary, themeProp],

Loading…
Cancel
Save