mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -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 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 (
|
||||
<Step {...props}>
|
||||
<Step ref={ref} {...props}>
|
||||
<ul>
|
||||
<li>
|
||||
<TextLink
|
||||
|
@ -46,3 +50,5 @@ export default function FurtherReadings(props: Omit<Props, 'children'>) {
|
|||
</Step>
|
||||
);
|
||||
}
|
||||
|
||||
export default forwardRef<HTMLDivElement, Props>(FurtherReadings);
|
||||
|
|
Loading…
Reference in a new issue