-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove clone. It seems to be unneeded, even though it will mutate the original object, this doesn't seem like it should matter Another optimization to the track selector Use structuredClone Misc lint fixes Misc
- Loading branch information
Showing
30 changed files
with
368 additions
and
289 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
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 |
---|---|---|
@@ -1,30 +1,36 @@ | ||
import React from 'react' | ||
import { AnyConfigurationModel } from '@jbrowse/core/configuration' | ||
import Dialog from '@jbrowse/core/ui/Dialog' | ||
import { getSession, getEnv } from '@jbrowse/core/util' | ||
import { getEnv, AbstractSessionModel } from '@jbrowse/core/util' | ||
import { getTrackName } from '@jbrowse/core/util/tracks' | ||
|
||
// locals | ||
import AboutContents from './AboutDialogContents' | ||
|
||
export function AboutDialog({ | ||
config, | ||
session, | ||
handleClose, | ||
}: { | ||
config: AnyConfigurationModel | ||
session: AbstractSessionModel | ||
handleClose: () => void | ||
}) { | ||
const session = getSession(config) | ||
const trackName = getTrackName(config, session) | ||
const { pluginManager } = getEnv(session) | ||
|
||
const AboutComponent = pluginManager.evaluateExtensionPoint( | ||
'Core-replaceAbout', | ||
AboutContents, | ||
{ session, config }, | ||
) as React.FC<any> | ||
) as React.FC<{ | ||
config: AnyConfigurationModel | ||
session: AbstractSessionModel | ||
}> | ||
|
||
return ( | ||
<Dialog open onClose={handleClose} title={trackName} maxWidth="xl"> | ||
<AboutComponent config={config} /> | ||
<AboutComponent config={config} session={session} /> | ||
</Dialog> | ||
) | ||
} |
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.