Merged in feat/SW-3644-storybook-v10 (pull request #3240)
feat(SW-3644): Storybook v10 * Auto update to Storybook v10 * Add scandic theme and logo * Update yarn.lock * Update formatting of package.json * Update vitest config and playwright plugin * Remove vitest 4 update * Re-added comment * Update the Typography component to explicitly return React.ReactNode * Add an explicit type assertion to the export * Add an explicit type assertion to the export for Checkbox * Explicit return type assertion * Add an explicit type assertion to the export * Update @types/react and fix ts warnings * Updated typings Approved-by: Linus Flood Approved-by: Matilda Landström
This commit is contained in:
@@ -20,7 +20,7 @@ interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
||||
errorCodeMessages?: Record<string, string>
|
||||
}
|
||||
|
||||
const Checkbox = forwardRef<
|
||||
const CheckboxComponent = forwardRef<
|
||||
HTMLInputElement,
|
||||
React.PropsWithChildren<CheckboxProps>
|
||||
>(function Checkbox(
|
||||
@@ -85,4 +85,8 @@ const Checkbox = forwardRef<
|
||||
)
|
||||
})
|
||||
|
||||
const Checkbox = CheckboxComponent as React.ForwardRefExoticComponent<
|
||||
React.PropsWithChildren<CheckboxProps> & React.RefAttributes<HTMLInputElement>
|
||||
>
|
||||
|
||||
export default Checkbox
|
||||
|
||||
Reference in New Issue
Block a user