Skip to content

Commit d622960

Browse files
feat(ui): use ExternalLink for announcement component
1 parent be29a55 commit d622960

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

invokeai/frontend/web/src/features/ui/components/CanvasV2Announcement.tsx

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Flex, Icon, ListItem, Text, UnorderedList } from '@invoke-ai/ui-library';
1+
import { ExternalLink, Flex, ListItem, UnorderedList } from '@invoke-ai/ui-library';
22
import { useTranslation } from 'react-i18next';
3-
import { PiArrowSquareOutBold } from 'react-icons/pi';
43

54
export const CanvasV2Announcement = () => {
65
const { t } = useTranslation();
@@ -12,24 +11,24 @@ export const CanvasV2Announcement = () => {
1211
<ListItem>{t('whatsNew.canvasV2Announcement.fluxSupport')}</ListItem>
1312
</UnorderedList>
1413
<Flex flexDir="column" gap={1}>
15-
<Flex gap={2}>
16-
<Text as="a" target="_blank" href="https://github.com/invoke-ai/InvokeAI/releases" fontWeight="semibold">
17-
{t('whatsNew.canvasV2Announcement.readReleaseNotes')}
18-
</Text>
19-
<Icon as={PiArrowSquareOutBold} />
20-
</Flex>
21-
<Flex gap={2}>
22-
<Text as="a" target="_blank" href="https://www.youtube.com/@invokeai/videos" fontWeight="semibold">
23-
{t('whatsNew.canvasV2Announcement.watchReleaseVideo')}
24-
</Text>
25-
<Icon as={PiArrowSquareOutBold} />
26-
</Flex>
27-
<Flex gap={2}>
28-
<Text as="a" target="_blank" href="https://www.youtube.com/@invokeai/videos" fontWeight="semibold">
29-
{t('whatsNew.canvasV2Announcement.watchUiUpdatesOverview')}
30-
</Text>
31-
<Icon as={PiArrowSquareOutBold} />
32-
</Flex>
14+
<ExternalLink
15+
fontSize="sm"
16+
fontWeight="semibold"
17+
label={t('whatsNew.canvasV2Announcement.readReleaseNotes')}
18+
href="https://github.com/invoke-ai/InvokeAI/releases"
19+
/>
20+
<ExternalLink
21+
fontSize="sm"
22+
fontWeight="semibold"
23+
label={t('whatsNew.canvasV2Announcement.watchReleaseVideo')}
24+
href="https://www.youtube.com/@invokeai/videos"
25+
/>
26+
<ExternalLink
27+
fontSize="sm"
28+
fontWeight="semibold"
29+
label={t('whatsNew.canvasV2Announcement.watchUiUpdatesOverview')}
30+
href="https://www.youtube.com/@invokeai/videos"
31+
/>
3332
</Flex>
3433
</Flex>
3534
);

0 commit comments

Comments
 (0)