installPybricksDialog: fix heart icon

Use actual icon instead of unicode character. This way it renders the
same on all OSes.
This commit is contained in:
David Lechner
2022-12-16 17:54:36 -06:00
committed by David Lechner
parent 1664a9d342
commit b85945ab1d
2 changed files with 20 additions and 4 deletions
@@ -23,6 +23,7 @@ import { FirmwareMetadata, HubType } from '@pybricks/firmware';
import { fileOpen } from 'browser-fs-access';
import classNames from 'classnames';
import React, { useCallback, useState } from 'react';
import { VisuallyHidden } from 'react-aria';
import { useDropzone } from 'react-dropzone';
import { useDispatch } from 'react-redux';
import { useLocalStorage } from 'usehooks-ts';
@@ -108,9 +109,21 @@ const UnsupportedHubs: React.VoidFunctionComponent = () => {
)}
</p>
<p>
{i18n.translate('selectHubPanel.notOnListButton.info.mindstorms.help', {
icon: '♥',
})}
{i18n.translate(
'selectHubPanel.notOnListButton.info.mindstorms.help.message',
{
sponsor: (
<>
<VisuallyHidden elementType="span">
{i18n.translate(
'selectHubPanel.notOnListButton.info.mindstorms.help.sponsor',
)}
</VisuallyHidden>
<Icon icon="heart" />
</>
),
},
)}
</p>
<ul>
<li>
@@ -9,7 +9,10 @@
"mindstorms": {
"title": "{legoMindstormsRegisteredTrademark} bricks",
"intro": "{appName} does not currently support previous generations of {legoMindstormsRegisteredTrademark}.",
"help": "But with your help, it can! Click the {icon} icon in the top right to see how you can support us.",
"help": {
"message": "But with your help, it can! Click the {sponsor} button in the top right to see how you can support us.",
"sponsor": "sponsor"
},
"rcx": "RCX: Might work in streaming mode.",
"nxt": "NXT: We have tested this. It could work!",
"ev3": "EV3: Supported using Visual Studio Code."