diff --git a/src/components/ProjectUsers/ProjectSpeakers.tsx b/src/components/ProjectUsers/ProjectSpeakers.tsx index ef4dc05d55..3490d69e18 100644 --- a/src/components/ProjectUsers/ProjectSpeakers.tsx +++ b/src/components/ProjectUsers/ProjectSpeakers.tsx @@ -81,6 +81,7 @@ function SpeakerListItem(props: ProjSpeakerProps): ReactElement { deleteAudio={() => removeConsent(id, projectId)} fileName={consent.fileName} pronunciationUrl={getAudioUrl(id, consent.fileName)} + size={"small"} warningTextId="projectSettings.speaker.consent.warning" /> diff --git a/src/components/Pronunciations/AudioPlayer.tsx b/src/components/Pronunciations/AudioPlayer.tsx index d0f1d548ca..7e52a549af 100644 --- a/src/components/Pronunciations/AudioPlayer.tsx +++ b/src/components/Pronunciations/AudioPlayer.tsx @@ -24,6 +24,7 @@ interface PlayerProps { fileName: string; onClick?: () => void; pronunciationUrl: string; + size?: "large" | "medium" | "small"; warningTextId?: string; } @@ -106,7 +107,7 @@ export default function AudioPlayer(props: PlayerProps): ReactElement { onTouchEnd={enableContextMenu} aria-label="play" id={`audio-${props.fileName}`} - size="large" + size={props.size || "large"} > {isPlaying ? : }