Skip to content

Commit

Permalink
Merge pull request #23350 from ubugnu/patch-1
Browse files Browse the repository at this point in the history
Fix duplicate name for interface and function
  • Loading branch information
jonniebigodes authored Jul 7, 2023
2 parents 40cb40e + f3e6dd2 commit 33b7443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/snippets/react/simple-page-implementation.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<PageLayout user={user}>
<DocumentHeader document={document} />
Expand Down

0 comments on commit 33b7443

Please sign in to comment.