Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

[PAY-1650] Update play/preview buttons on track details to use HarmonyButton #3795

Merged
merged 3 commits into from
Jul 25, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions packages/web/src/components/track/PlayPauseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
CommonState
} from '@audius/common'
import {
Button,
ButtonSize,
ButtonType,
HarmonyButton,
HarmonyButtonSize,
HarmonyButtonType,
IconPause,
IconPlay
} from '@audius/stems'
Expand Down Expand Up @@ -78,12 +78,14 @@ export const PlayPauseButton = ({
}

return (
<Button
<HarmonyButton
name={isPreview ? 'preview' : 'play'}
size={ButtonSize.LARGE}
type={isPreview ? ButtonType.SECONDARY : ButtonType.PRIMARY_ALT}
size={HarmonyButtonSize.LARGE}
variant={
isPreview ? HarmonyButtonType.SECONDARY : HarmonyButtonType.PRIMARY
}
text={playing ? messages.pause : playText}
leftIcon={playing ? <IconPause /> : <PlayIconComponent />}
leftIcon={playing ? IconPause : PlayIconComponent}
onClick={onPlay}
minWidth={180}
disabled={disabled}
Expand Down