File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- import React , { FC , HTMLProps } from 'react' ;
1+ import { FC , HTMLProps , ReactNode } from 'react' ;
22import classNames from 'classnames' ;
33import { AsElementLink } from '@util/types/LinkTypes' ;
44
55const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ;
66
77const processLetters = (
8- children : React . ReactNode ,
8+ children : ReactNode ,
99 fullAlphabet : boolean | undefined ,
1010 removedLetters : Array < string > | undefined ,
1111 disabledLetters : Array < string > | undefined ,
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export const childIsOfComponentType = (
1717 | undefined ,
1818 component : FC ,
1919) : child is
20- | React . ReactElement < any , string | React . JSXElementConstructor < any > >
21- | React . ReactPortal =>
20+ | ReactElement < any , string | JSXElementConstructor < any > >
21+ | ReactPortal =>
2222 child !== undefined &&
2323 child !== null &&
2424 typeof child === 'object' &&
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import React , { FC , ReactNode } from 'react' ;
22import { SkipLink , HintText } from '../../src' ;
33import { Meta , StoryObj } from '@storybook/react-vite' ;
44
5- const CodeText : React . FC < { children : React . ReactNode } > = ( {
5+ const CodeText : FC < { children : ReactNode } > = ( {
66 children,
77} : {
8- children : React . ReactNode ;
8+ children : ReactNode ;
99} ) => (
1010 < span
1111 style = { {
You can’t perform that action at this time.
0 commit comments