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:
parent
669d7537fa
commit
4f3b8e9b40
1 changed files with 9 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue