Skip to content

Commit

Permalink
feat(138): add link to docs in tag selector fallback text
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielrindlaub committed Dec 2, 2024
1 parent 8d5799a commit 5900c08
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/components/TagSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,19 @@ export const TagSelector = ({ projectTags, unaddedTags, onAddTag, imageId }) =>
<PopoverContent side="top" sideOffset={5} align="start">
<TagSelectorContent>
<TagOptionsContainer>
{projectTags.length === 0 && <DefaultTagMessage>No tags available</DefaultTagMessage>}
{projectTags.length === 0 && (
<DefaultTagMessage>
No tags{' '}
<a
href="https://docs.animl.camera/getting-started/structure-concepts-and-terminology#tags"
target="_blank"
rel="noopener noreferrer"
>
tags
</a>{' '}
available
</DefaultTagMessage>
)}
{projectTags.length > 0 && tagOptions.length === 0 && (
<DefaultTagMessage>All tags added</DefaultTagMessage>
)}
Expand Down

0 comments on commit 5900c08

Please sign in to comment.