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

(cherry picked from commit 33b7443)
  • Loading branch information
jonniebigodes authored and storybook-bot committed Jul 11, 2023
1 parent 54087ff commit 6965182
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 6965182

Please sign in to comment.