-
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
8d12237
commit 1fb82da
Showing
6 changed files
with
100 additions
and
114 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...-end/src/features/editor/components/toolbarView/toolbarGroupButtons/applyGroupButtons.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,26 @@ | ||
import { Deblur as DeblurIcon } from '@mui/icons-material'; | ||
|
||
import { ToolbarGroupItemProps } from '@/features/editor/components/toolbarView'; | ||
|
||
const applySpliceAiClick = () => { | ||
console.log('Clicked Apply SpliceAI Button!'); | ||
}; | ||
|
||
const applyCaddClick = () => { | ||
console.log('Clicked Apply CADD Button!'); | ||
}; | ||
|
||
export const ApplyGroupButtons: ToolbarGroupItemProps[] = [ | ||
{ | ||
group: 'apply', | ||
icon: DeblurIcon, | ||
label: 'Apply SpliceAI', | ||
onClick: applySpliceAiClick, | ||
}, | ||
{ | ||
group: 'apply', | ||
icon: DeblurIcon, | ||
label: 'Apply CADD', | ||
onClick: applyCaddClick, | ||
}, | ||
]; |
36 changes: 36 additions & 0 deletions
36
...d/src/features/editor/components/toolbarView/toolbarGroupButtons/downloadGroupButtons.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,36 @@ | ||
import { ToolbarGroupItemProps } from '@/features/editor/components/toolbarView'; | ||
|
||
import { Download as DownloadIcon } from '@mui/icons-material'; | ||
|
||
const handleDownloadLovdClick = () => { | ||
console.log('Clicked Download Lovd Button!'); | ||
}; | ||
|
||
const handleDownloadClinvarClick = () => { | ||
console.log('Clicked Download Clinvar Button!'); | ||
}; | ||
|
||
const handleDownloadGnomadClick = () => { | ||
console.log('Clicked Download Gnomad Button!'); | ||
}; | ||
|
||
export const DownloadGroupButtons: ToolbarGroupItemProps[] = [ | ||
{ | ||
group: 'download', | ||
icon: DownloadIcon, | ||
label: 'LOVD', | ||
onClick: handleDownloadLovdClick, | ||
}, | ||
{ | ||
group: 'download', | ||
icon: DownloadIcon, | ||
label: 'ClinVar', | ||
onClick: handleDownloadClinvarClick, | ||
}, | ||
{ | ||
group: 'download', | ||
icon: DownloadIcon, | ||
label: 'gnomAD', | ||
onClick: handleDownloadGnomadClick, | ||
}, | ||
]; |
3 changes: 3 additions & 0 deletions
3
app/front-end/src/features/editor/components/toolbarView/toolbarGroupButtons/index.ts
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,3 @@ | ||
export { ApplyGroupButtons } from './applyGroupButtons'; | ||
export { DownloadGroupButtons } from './downloadGroupButtons'; | ||
export { MergeGroupButtons } from './mergeGroupButtons'; |
26 changes: 26 additions & 0 deletions
26
...-end/src/features/editor/components/toolbarView/toolbarGroupButtons/mergeGroupButtons.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,26 @@ | ||
import { MergeType as MergeTypeIcon } from '@mui/icons-material'; | ||
|
||
import { ToolbarGroupItemProps } from '@/features/editor/components/toolbarView'; | ||
|
||
const mergeLovdAndGnomadClick = () => { | ||
console.log('Clicked Merge LOVD & gnomAD Button!'); | ||
}; | ||
|
||
const mergeLovdAndClinvarClick = () => { | ||
console.log('Clicked Merge LOVD & ClinVar Button!'); | ||
}; | ||
|
||
export const MergeGroupButtons: ToolbarGroupItemProps[] = [ | ||
{ | ||
group: 'merge', | ||
icon: MergeTypeIcon, | ||
label: 'Merge LOVD & gnomAD', | ||
onClick: mergeLovdAndGnomadClick, | ||
}, | ||
{ | ||
group: 'merge', | ||
icon: MergeTypeIcon, | ||
label: 'Merge LOVD & ClinVar', | ||
onClick: mergeLovdAndClinvarClick, | ||
}, | ||
]; |
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