Skip to content

Commit

Permalink
Merge pull request #210 from stephb9959/main
Browse files Browse the repository at this point in the history
[WIFI-13380] Cybertan model images
  • Loading branch information
BourqueCharles authored Feb 6, 2024
2 parents 61f8b69 + 7c64fb7 commit 7b0d43c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ucentral-client",
"version": "3.0.1(6)",
"version": "3.0.2(1)",
"description": "",
"private": true,
"main": "index.tsx",
Expand Down
Binary file added public/devices/cybertan_eww631-a1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/devices/cybertan_eww631-b1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/devices/cybertan_skf224-c1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 2 additions & 8 deletions src/pages/Device/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ const DeviceSummary = ({ serialNumber }: Props) => {
const getDeviceCompatible = () => {
if (!getDevice.data?.compatible) return undefined;

if (!getDevice.data?.compatible.includes('-')) return getDevice.data?.compatible;

const split = getDevice.data?.compatible.split('-');

if (split[split.length - 1]?.length === 2) return split[0]?.trim();

return getDevice.data?.compatible;
};

Expand Down Expand Up @@ -129,7 +123,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
<Heading size="sm">{t('controller.stats.load')}:</Heading>
</GridItem>
<GridItem colSpan={1}>
{getStats.data?.unit?.load?.map((l) => `${l.toFixed(2)}`).join(' | ') ?? ''}
{getStats.data?.unit?.load ? getStats.data?.unit.load.map((l) => `${l.toFixed(2)}`).join(' | ') : ''}
</GridItem>
<GridItem colSpan={1} alignContent="center" alignItems="center">
<Heading size="sm">{t('controller.devices.localtime')}:</Heading>
Expand Down Expand Up @@ -180,7 +174,7 @@ const DeviceSummary = ({ serialNumber }: Props) => {
</GridItem>
<GridItem colSpan={1}>
{getStatus.data?.connectReason && getStatus.data?.connectReason.length > 0
? uppercaseFirstLetter(getStatus.data.connectReason)
? uppercaseFirstLetter(getStatus.data?.connectReason)
: '-'}
</GridItem>
</Grid>
Expand Down

0 comments on commit 7b0d43c

Please sign in to comment.