Skip to content

Commit

Permalink
feat: added plus icon to device select configuration and localization
Browse files Browse the repository at this point in the history
  • Loading branch information
rickimoore committed Jul 3, 2023
1 parent 78000f2 commit 9813d99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/locales/translations/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@
"deviceSelect": {
"label": "Select Device",
"confirmText": "Are you sure you want to remove <0>{{target}}</0> device?",
"confirmCta": "Remove Device"
"confirmCta": "Remove Device",
"addDevice": "Add Device",
"selectDevice": "Select stored device"
}
}
7 changes: 5 additions & 2 deletions src/views/Onboard/views/ConfigureConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,14 @@ const ConfigureConnection = () => {
<div onClick={toggleDeviceInput}>
<Typography
color='text-primaryBright'
className='cursor-pointer'
className='cursor-pointer flex items-center'
isBold
type='text-caption2'
>
{isAddDevice ? 'Add Device' : 'Select stored device'}
{isAddDevice && (
<span className='text-caption1 bi bi-plus-circle text-primaryBright mr-2' />
)}{' '}
{t(`deviceSelect.${isAddDevice ? 'addDevice' : 'selectDevice'}`)}
</Typography>
</div>
)}
Expand Down

0 comments on commit 9813d99

Please sign in to comment.