Skip to content

Commit

Permalink
Merge pull request #49 from igloo-4002/Elysia/name-document
Browse files Browse the repository at this point in the history
Pause icon on pause
  • Loading branch information
elysiacasandra committed Sep 4, 2023
2 parents ee02c90 + d03bd50 commit 6307f6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/FloatingPlayPause.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PlayIcon } from '@heroicons/react/24/outline';
import { PauseIcon, PlayIcon } from '@heroicons/react/24/outline';

import { BASE_URL } from '~/simulation-urls';
import { useNetworkStore } from '~/zustand/useNetworkStore';
Expand Down Expand Up @@ -56,7 +56,8 @@ const FloatingPlayPause = () => {
style={{ display: 'flex', alignItems: 'center' }}
>
{isPlaying ? 'Pause' : 'Play'}
<PlayIcon className="h-5 ml-2" />
{!isPlaying && <PlayIcon className="h-5 ml-2" />}
{isPlaying && <PauseIcon className="h-5 ml-2" />}
</button>
</div>
);
Expand Down

0 comments on commit 6307f6c

Please sign in to comment.