diff --git a/src/components/NativeSelect/SelectItem/index.tsx b/src/components/NativeSelect/SelectItem/index.tsx index ea309aa..bb4ff6c 100644 --- a/src/components/NativeSelect/SelectItem/index.tsx +++ b/src/components/NativeSelect/SelectItem/index.tsx @@ -1,4 +1,4 @@ -import { ForwardedRef, forwardRef, memo } from 'react'; +import { ForwardedRef, forwardRef } from 'react'; import { useStyles } from './style'; @@ -12,8 +12,8 @@ interface SelectItemProps { value: any; } -const SelectItem = memo( - forwardRef(({ value, label, prefixCls, isSelected, isActive, disabled, ...props }, reference) => { +const SelectItem = forwardRef( + ({ value, label, prefixCls, isSelected, isActive, disabled, ...props }, reference) => { const { styles, cx } = useStyles(prefixCls); return ( @@ -34,7 +34,7 @@ const SelectItem = memo( {label} ); - }), + }, ); export default SelectItem; diff --git a/src/layouts/DocLayout/index.tsx b/src/layouts/DocLayout/index.tsx index 3ef3a90..20a5c28 100644 --- a/src/layouts/DocLayout/index.tsx +++ b/src/layouts/DocLayout/index.tsx @@ -28,5 +28,3 @@ const App = memo(() => { ); }); - -export default App; diff --git a/src/slots/Content/index.tsx b/src/slots/Content/index.tsx index 32e9925..42ce0bb 100644 --- a/src/slots/Content/index.tsx +++ b/src/slots/Content/index.tsx @@ -1,3 +1,4 @@ +import { Typography } from '@lobehub/ui'; import { Skeleton } from 'antd'; import { useResponsive } from 'antd-style'; import isEqual from 'fast-deep-equal'; @@ -22,16 +23,15 @@ const Content = memo(({ children, ...props }) => { return ( -
- -
+ {children} -
+
diff --git a/src/slots/Content/style.ts b/src/slots/Content/style.ts index d0f00ab..5d4cbdf 100644 --- a/src/slots/Content/style.ts +++ b/src/slots/Content/style.ts @@ -78,6 +78,21 @@ export const useStyles = createStyles( padding-inline-start: 18px; } } + + summary kbd { + transform: unset; + + padding: unset; + + font-size: inherit; + line-height: inherit; + color: inherit; + + background: unset; + border: unset; + box-shadow: unset; + } + } `, ), }), diff --git a/src/slots/Features/index.tsx b/src/slots/Features/index.tsx index 609e526..8b636b0 100644 --- a/src/slots/Features/index.tsx +++ b/src/slots/Features/index.tsx @@ -11,7 +11,7 @@ const Features = memo(() => { if (!features?.length) return; - return ; + return ; }); export default Features;