mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
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:
committed by
David Lechner
parent
1664a9d342
commit
b85945ab1d
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user