Skip to content

Commit

Permalink
Merge pull request #28487 from storybookjs/valentin/export-prop-type-…
Browse files Browse the repository at this point in the history
…definitions

React: Export ButtonProps and HeaderProps in CLI templates
  • Loading branch information
valentinpalkovic authored Jul 8, 2024
2 parents b3a656b + fd4d89e commit 40b1c89
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-3-8/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-3-8/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-4-9/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-4-9/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-3-8/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-3-8/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-4-9/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-4-9/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down

0 comments on commit 40b1c89

Please sign in to comment.