Skip to content

Commit

Permalink
app: Don't animate devcies initially
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jan 3, 2021
1 parent 604a8d5 commit 2a3c51b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/views/devices/index.tsx
Expand Up @@ -27,7 +27,7 @@ const Devices = observer(() => {
];

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

0 comments on commit 2a3c51b

Please sign in to comment.