0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(console): resolve forwardRef warning in debugger console (#4361)

This commit is contained in:
Charles Zhao 2023-08-17 02:15:04 -05:00 committed by GitHub
parent 669d7537fa
commit 4f3b8e9b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,14 @@
import { type Ref, forwardRef } from 'react';
import TextLink from '@/ds-components/TextLink'; import TextLink from '@/ds-components/TextLink';
import Step, { type Props } from '../Step'; import Step, { type Props as StepProps } from '../Step';
export default function FurtherReadings(props: Omit<Props, 'children'>) { type Props = Omit<StepProps, 'children'>;
function FurtherReadings(props: Props, ref?: Ref<HTMLDivElement>) {
return ( return (
<Step {...props}> <Step ref={ref} {...props}>
<ul> <ul>
<li> <li>
<TextLink <TextLink
@ -46,3 +50,5 @@ export default function FurtherReadings(props: Omit<Props, 'children'>) {
</Step> </Step>
); );
} }
export default forwardRef<HTMLDivElement, Props>(FurtherReadings);