-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eea56ee
commit a93e505
Showing
5 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...c/preview/pages/components/advanced/settings-sidebar-content-search.example.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import SettingsSidebarContentSearch from '@/components/advanced/settings-components/settings-sidebar-content-search.component'; | ||
|
||
export default function SettingSidebarContentSearchExamples() { | ||
return ( | ||
<div> | ||
<SettingsSidebarContentSearch | ||
buttonPlaceholderText="?? Select a project" | ||
extensionLabels={['A', 'B', 'C']} | ||
projectInfo={[ | ||
{ projectName: 'a', projectId: '1' }, | ||
{ projectName: 'b', projectId: '2' }, | ||
{ projectName: 'c', projectId: '3' }, | ||
]} | ||
selectedSidebarItem={{ label: '', projectId: '' }} | ||
projectsSidebarGroupLabel="" | ||
extensionsSidebarGroupLabel="" | ||
handleSelectSidebarItem={(key: string, projId?: string) => | ||
console.log('Selected:', key, projId) | ||
} | ||
onSearch={(query) => console.log('Searching for:', query)} | ||
/> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters