Skip to content

Commit

Permalink
Feat: update shared
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebonnici committed Mar 5, 2024
1 parent f9e2bbe commit 61f0bad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import {
Button,
CollapsibleGroup,
Group,
logger,
selectedDevice,
SidePanel,
Expand Down Expand Up @@ -36,7 +36,7 @@ export default () => {

return (
<SidePanel className="side-panel">
<CollapsibleGroup defaultCollapsed={false} heading="Actions">
<Group defaultCollapsed={false} heading="Actions" collapsible>
<Button
disabled={!device || isWriting}
variant="primary"
Expand Down Expand Up @@ -83,10 +83,10 @@ export default () => {
>
Load default config
</Button>
</CollapsibleGroup>
<CollapsibleGroup defaultCollapsed heading="Configuration data">
</Group>
<Group heading="Configuration data" collapsible>
<ConfigDataPreview enabled />
</CollapsibleGroup>
</Group>
</SidePanel>
);
};
5 changes: 3 additions & 2 deletions src/features/VoltageConfiguration/VoltageConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useDispatch, useSelector } from 'react-redux';
import {
Button,
Card,
NumberInputSliderWithUnit,
NumberInput,
} from '@nordicsemiconductor/pc-nrfconnect-shared';

import {
Expand Down Expand Up @@ -101,7 +101,8 @@ const VoltageConfiguration = ({
</Button>
</div>
<div className="tw-flex tw-flex-col">
<NumberInputSliderWithUnit
<NumberInput
showSlider
label="Voltage"
unit="mV"
range={{ min: voltageMin, max: voltageMax, step: 100 }}
Expand Down

0 comments on commit 61f0bad

Please sign in to comment.