File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed
developer-hub/src/components
insights/src/components/Root
packages/component-library/src/SearchButton Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ export const SearchButton = () => {
1313
1414 return (
1515 < >
16- < SearchButtonComponent size = 'sm' smallScreenText = "Search" largeScreenText = "Search" onClick = { handleSearch } />
16+ < SearchButtonComponent
17+ size = "sm"
18+ smallScreenContent = "Search"
19+ largeScreenContent = "Search"
20+ onClick = { handleSearch }
21+ />
1722 < DefaultSearchDialog
1823 open = { open }
1924 onOpenChange = { setOpen }
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ const SearchButtonImpl = (
7676 < SearchButtonComponent
7777 size = "sm"
7878 { ...props }
79- smallScreenText = { < SearchShortcutText /> }
80- largeScreenText = { < SearchShortcutText /> }
79+ smallScreenContent = { < SearchShortcutText /> }
80+ largeScreenContent = { < SearchShortcutText /> }
8181 />
8282) ;
8383
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ export default meta;
3939
4040export const SearchButton = {
4141 args : {
42- largeScreenText : "Search" ,
43- smallScreenText : "Search" ,
42+ largeScreenContent : "Search" ,
43+ smallScreenContent : "Search" ,
4444 size : "sm" ,
4545 } ,
4646} satisfies StoryObj < typeof SearchButtonComponent > ;
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import styles from "./index.module.scss";
88
99
1010type OwnProps = {
11- largeScreenText ?: ReactNode | undefined ;
12- smallScreenText ?: ReactNode | undefined ;
11+ largeScreenContent ?: ReactNode ;
12+ smallScreenContent ?: ReactNode ;
1313} ;
1414
1515type Props = Pick <
@@ -20,8 +20,8 @@ type Props = Pick<
2020
2121export const SearchButton = ( {
2222 beforeIcon,
23- largeScreenText ,
24- smallScreenText ,
23+ largeScreenContent ,
24+ smallScreenContent ,
2525 ...props
2626} : Props ) => {
2727 return (
@@ -35,7 +35,7 @@ export const SearchButton = ({
3535
3636 { ...props }
3737 >
38- { largeScreenText }
38+ { largeScreenContent }
3939 </ Button >
4040 < Button
4141 className = { styles . smallScreenSearchButton ?? "" }
@@ -46,7 +46,7 @@ export const SearchButton = ({
4646 rounded
4747 { ...props }
4848 >
49- { smallScreenText }
49+ { smallScreenContent }
5050 </ Button >
5151 </ div >
5252 ) ;
You can’t perform that action at this time.
0 commit comments