Skip to content

Commit

Permalink
Update Header storybook doc relative to search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jun 30, 2023
1 parent 1cf0186 commit 3b18db5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
1 change: 1 addition & 0 deletions src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export type HeaderProps = {
**/
params: {
id: string;
//TODO: Remove this parameter, it's a scoping error
name: string;
type: "search";
className: string;
Expand Down
34 changes: 8 additions & 26 deletions stories/Header.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,8 @@ export const HeaderWithSearchEngine = getStory(
},
"serviceTitle": "Nom du site / service",
"serviceTagline": "baseline - précisions sur l'organisation",
"renderSearchInput": ({ className, id, name, placeholder, type }) => (
<input
className={className}
id={id}
name={name}
placeholder={placeholder}
type={type}
/>
"renderSearchInput": ({ className, id, placeholder, type }) => (
<input className={className} id={id} placeholder={placeholder} type={type} />
)
},
{
Expand Down Expand Up @@ -262,14 +256,8 @@ export const HeaderWithQuickAccessItemsNavItemsAndSearchEngine = getStory(
}
}
],
"renderSearchInput": ({ className, id, name, placeholder, type }) => (
<input
className={className}
id={id}
name={name}
placeholder={placeholder}
type={type}
/>
"renderSearchInput": ({ className, id, placeholder, type }) => (
<input className={className} id={id} placeholder={placeholder} type={type} />
)
},
{
Expand Down Expand Up @@ -304,14 +292,8 @@ export const HeaderWithVerticalOperatorLogo = getStory(
"title":
"Accueil - [À MODIFIER - texte alternatif de l’image : nom de l'opérateur ou du site serviciel] - République Française"
},
"renderSearchInput": ({ className, id, name, placeholder, type }) => (
<input
className={className}
id={id}
name={name}
placeholder={placeholder}
type={type}
/>
"renderSearchInput": ({ className, id, placeholder, type }) => (
<input className={className} id={id} placeholder={placeholder} type={type} />
),
"operatorLogo": {
"orientation": "vertical",
Expand All @@ -327,8 +309,8 @@ export const HeaderWithVerticalOperatorLogo = getStory(
<Header
//...
renderSearchInput={({ className, id, name, placeholder, type }) =>
<input className={className} id={id} name={name} placeholder={placeholder} type={type} />
renderSearchInput={({ className, id, placeholder, type }) =>
<input className={className} id={id} placeholder={placeholder} type={type} />
}
/>
Expand Down

0 comments on commit 3b18db5

Please sign in to comment.