Skip to content

Commit f2c09e3

Browse files
committed
fix build issue
1 parent 4049ba5 commit f2c09e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/theme-ui/src/orga.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const createComponents = (comps: OrgaProviderComponents) => {
167167
const componentKeys = Object.keys(comps) as Array<keyof IntrinsicSxElements>
168168

169169
componentKeys.forEach((key) => {
170-
(next[key] as ThemedComponentsDict[typeof key]) = styled<any>(comps[key])(
170+
next[key] = styled<any>(comps[key])(
171171
themed(key)
172172
) as ThemedComponentsDict[typeof key]
173173
})
@@ -181,6 +181,7 @@ export const OrgaProvider: FC<OrgaProviderProps> = ({
181181
const outer = useOrgaComponents({}) as OrgaProviderComponents
182182
return jsx(_OrgaProvider, {
183183
components: createComponents({ ...outer, ...components }),
184+
// @ts-ignore
184185
children,
185186
})
186187
}

0 commit comments

Comments
 (0)