Skip to content

Commit

Permalink
example: fix example error
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Aug 26, 2023
1 parent 1fe5f95 commit e571e90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/with-ant-design/app/AntdRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import React from 'react'
import { useServerInsertedHTML } from 'next/navigation'
import { StyleProvider, createCache, extractStyle } from '@ant-design/cssinjs'
import type Entity from '@ant-design/cssinjs/es/Cache'

interface StyledRegistryProps {
children: React.ReactNode
}

const StyledComponentsRegistry = ({ children }: StyledRegistryProps) => {
const cache = createCache()
const cache = React.useMemo<Entity>(() => createCache(), [createCache])
useServerInsertedHTML(() => (
<style
id="antd"
Expand Down

0 comments on commit e571e90

Please sign in to comment.