-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- shifting ajax usage to directly use ajax sub-areas for some of the src/pages uses. - improving mock types where possible.
- Loading branch information
1 parent
bc4f4ac
commit 95a2f28
Showing
10 changed files
with
76 additions
and
109 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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ import rareXLogo from 'src/images/library/datasets/rare-x-logo.svg'; | |
import targetLogo from 'src/images/library/datasets/target_logo.jpeg'; | ||
import tcgaLogo from 'src/images/library/datasets/TCGALogo.jpg'; | ||
import topMedLogo from 'src/images/library/datasets/[email protected]'; | ||
import { Ajax } from 'src/libs/ajax'; | ||
import { Metrics } from 'src/libs/ajax/Metrics'; | ||
import { getEnabledBrand } from 'src/libs/brand-utils'; | ||
import colors from 'src/libs/colors'; | ||
import { getConfig } from 'src/libs/config'; | ||
|
@@ -135,7 +135,7 @@ const Participant = ({ logo, title, shortDescription, description, sizeText, mod | |
|
||
const browseTooltip = 'Look for the Export to Terra icon to export data from this provider.'; | ||
|
||
const captureBrowseDataEvent = (datasetName) => Ajax().Metrics.captureEvent(Events.datasetLibraryBrowseData, { datasetName }); | ||
const captureBrowseDataEvent = (datasetName) => void Metrics().captureEvent(Events.datasetLibraryBrowseData, { datasetName }); | ||
|
||
const thousandGenomesHighCoverage = () => | ||
h( | ||
|
@@ -654,7 +654,7 @@ export const Datasets = () => { | |
h(DataBrowserPreviewToggler, { | ||
onChange: (value) => { | ||
setCatalogShowing(value); | ||
Ajax().Metrics.captureEvent(Events.catalogToggle, { enabled: value }); | ||
void Metrics().captureEvent(Events.catalogToggle, { enabled: value }); | ||
setLocalPref('catalog-toggle', value); | ||
}, | ||
catalogShowing, | ||
|
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