-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add an Operator Selector to data-research page (#444)
Co-authored-by: yadenmezi <[email protected]>
- Loading branch information
1 parent
1758bf5
commit ee2cc1b
Showing
8 changed files
with
1,694 additions
and
3,762 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import '../../shared/shared.css'; | ||
import OperatorSelector, { FilterOperatorOptions } from './OperatorSelector'; | ||
import { useState } from 'react'; | ||
|
||
const OperatorSelectorStory = () => { | ||
const [operatorId, setOperatorId] = useState<string>(); | ||
|
||
return ( | ||
<div> | ||
<h1>בחירת המפעילים הגדולים</h1> | ||
<OperatorSelector operatorId={operatorId} setOperatorId={setOperatorId} filter={FilterOperatorOptions.MAJOR}></OperatorSelector> | ||
<h1>בחירת כל המפעילים</h1> | ||
<OperatorSelector operatorId={operatorId} setOperatorId={setOperatorId} filter={FilterOperatorOptions.ALL}></OperatorSelector> | ||
<h1>בחירת המפעילים הרלוונטיים</h1> | ||
<OperatorSelector operatorId={operatorId} setOperatorId={() => ""} filter={FilterOperatorOptions.RELEVANT}></OperatorSelector> | ||
</div> | ||
); | ||
}; | ||
|
||
const meta: Meta = { | ||
title: 'Components/OperatorSelector', | ||
component: OperatorSelectorStory, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
const defaultArgs = {}; | ||
|
||
export const Default: Story = { | ||
args: defaultArgs, | ||
}; |
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
Oops, something went wrong.