From 293ff6d39c57f22e395b6d782672dce72cbb9f7b Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Fri, 7 Jul 2023 21:42:40 +0100 Subject: [PATCH] Merge pull request #23350 from ubugnu/patch-1 Fix duplicate name for interface and function (cherry picked from commit 33b74434cbedd61e89aaca9bacddea5ca114843d) --- docs/snippets/react/simple-page-implementation.ts.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snippets/react/simple-page-implementation.ts.mdx b/docs/snippets/react/simple-page-implementation.ts.mdx index 913064973839..02629a7a3bb9 100644 --- a/docs/snippets/react/simple-page-implementation.ts.mdx +++ b/docs/snippets/react/simple-page-implementation.ts.mdx @@ -7,13 +7,13 @@ import SubDocuments from './SubDocuments'; import DocumentHeader from './DocumentHeader'; import DocumentList from './DocumentList'; -export interface DocumentScreen { +export interface DocumentScreenProps { user?: {}; document?: Document; subdocuments?: SubDocuments[]; } -function DocumentScreen({ user, document, subdocuments }) { +export function DocumentScreen({ user, document, subdocuments }: DocumentScreenProps) { return (