-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): add help tips for gene and ref node dropdowns
Follow up for #1492
- Loading branch information
1 parent
ef5ca4a
commit 97366e9
Showing
4 changed files
with
73 additions
and
6 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
30 changes: 30 additions & 0 deletions
30
packages/nextclade-web/src/components/Help/SelectGeneHelp.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,30 @@ | ||
import React from 'react' | ||
import { useTranslationSafe } from 'src/helpers/useTranslationSafe' | ||
import { InfoButton } from 'src/components/Common/InfoButton' | ||
import { LinkExternal } from 'src/components/Link/LinkExternal' | ||
|
||
export function SelectGeneHelp() { | ||
const { t } = useTranslationSafe() | ||
|
||
return ( | ||
<InfoButton color="link"> | ||
<p>{t('Select genetic feature.')}</p> | ||
|
||
<p>{t('This allows to...')}</p> | ||
|
||
<p> | ||
{t( | ||
'You can select one of the datasets manually or to use automatic dataset suggestion function. Automatic suggestion will attempt to guess the most appropriate dataset from your sequence data.', | ||
)} | ||
</p> | ||
|
||
<p> | ||
{t('Learn more in Nextclade {{documentation}}')} | ||
<LinkExternal href="https://docs.nextstrain.org/projects/nextclade/en/stable"> | ||
{t('documentation')} | ||
</LinkExternal> | ||
{t('.')} | ||
</p> | ||
</InfoButton> | ||
) | ||
} |
24 changes: 24 additions & 0 deletions
24
packages/nextclade-web/src/components/Help/SelectRefNodeHelp.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 React from 'react' | ||
import { useTranslationSafe } from 'src/helpers/useTranslationSafe' | ||
import { InfoButton } from 'src/components/Common/InfoButton' | ||
import { LinkExternal } from 'src/components/Link/LinkExternal' | ||
|
||
export function SelectRefNodeHelp() { | ||
const { t } = useTranslationSafe() | ||
|
||
return ( | ||
<InfoButton color="link"> | ||
<p>{t('Select reference node target for relative mutations.')}</p> | ||
|
||
<p>{t('This allows ...')}</p> | ||
|
||
<p> | ||
{t('Learn more in Nextclade {{documentation}}')} | ||
<LinkExternal href="https://docs.nextstrain.org/projects/nextclade/en/stable"> | ||
{t('documentation')} | ||
</LinkExternal> | ||
{t('.')} | ||
</p> | ||
</InfoButton> | ||
) | ||
} |
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