Skip to content

Commit

Permalink
app: Fix a few console warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Dec 28, 2020
1 parent 34b7b3d commit c6dd433
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
28 changes: 19 additions & 9 deletions src/renderer/components/form/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,25 @@ const SIZES = {
full: '100%',
};

const Field = styled(({size: _size, name, description, children, ...p}: Props) => (
<label {...p}>
{children}
<div>
{name}
{description && <small>{description}</small>}
</div>
</label>
))<Props>`
const Field = styled(
({
size: _size,
top: _top,
noCenter: _noCenter,
name,
description,
children,
...p
}: Props) => (
<label {...p}>
{children}
<div>
{name}
{description && <small>{description}</small>}
</div>
</label>
)
)<Props>`
font-family: Ubuntu;
line-height: 1.4;
display: grid;
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/views/devices/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const Devices = observer(() => {

return (
<AnimatePresence>
{store.networkState === NetworkState.Online && <ConnectingSplash />}
{store.networkState === NetworkState.Failed && <ConnectionError />}
{store.networkState === NetworkState.Online && <ConnectingSplash key="splash" />}
{store.networkState === NetworkState.Failed && <ConnectionError key="error" />}
{deviceMap[DeviceType.CDJ]?.sort(sortById).map(deviceStore => {
const {device, state} = deviceStore;
return (
Expand Down Expand Up @@ -58,7 +58,7 @@ const Devices = observer(() => {
</Device>
);
})}
<SmallDeviceList>
<SmallDeviceList key="smallDevices">
<AnimatePresence>
{otherDevices.map(({device}) => (
<SmallDevice key={device.id}>
Expand Down

0 comments on commit c6dd433

Please sign in to comment.