fix(mobile): list desktop and web devices instead of failing the screen
normalizeRegisteredDevice accepted only android/ios, so one desktop row made the whole Devices screen fail. Accept the server platform list and show the platform on each card.
This commit is contained in:
parent
0a4f5aee64
commit
53fcdf6305
3 changed files with 20 additions and 3 deletions
|
|
@ -150,7 +150,10 @@ export default function DevicesScreen(): React.ReactElement {
|
|||
: t('mobile.devices.active')}
|
||||
</ThemeText>
|
||||
</View>
|
||||
<ThemeText variant="small" color="muted">{device.osVersion ?? '—'}</ThemeText>
|
||||
<ThemeText variant="small" color="muted">
|
||||
{t(`mobile.devices.platform.${device.platform}`)}
|
||||
{device.osVersion ? ` · ${device.osVersion}` : ''}
|
||||
</ThemeText>
|
||||
<ThemeText variant="small" color="muted">
|
||||
{t('mobile.devices.version', { version: device.appVersion })}
|
||||
</ThemeText>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue