Skip to content

Commit

Permalink
chore: move timer and hotkey
Browse files Browse the repository at this point in the history
to $public/assets/
  • Loading branch information
Schwehn42 committed Jan 14, 2025
1 parent 553426c commit 293a60b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ProfileSettings = () => {
>
<Toggle active={state.hotkeysAreActive} />
</SettingsButton>
<a className="profile-settings__open-cheat-sheet-button" href={`${process.env.PUBLIC_URL}/hotkeys.pdf`} target="_blank" rel="noopener noreferrer">
<a className="profile-settings__open-cheat-sheet-button" href={`${process.env.PUBLIC_URL}/assets/hotkeys.pdf`} target="_blank" rel="noopener noreferrer">
<p>{t("Hotkeys.cheatSheet")}</p>
<Info />
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Timer/Timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Timer = (props: TimerProps) => {
const boardId = useAppSelector((state) => state.board.data!.id);
const me = useAppSelector((state) => state.participants?.self);

const [playTimesUpSound, {sound: timesUpSoundObject}] = useSound(`${process.env.PUBLIC_URL}/timer_finished.mp3`, {volume: 0.5, interrupt: true});
const [playTimesUpSound, {sound: timesUpSoundObject}] = useSound(`${process.env.PUBLIC_URL}/assets/timer_finished.mp3`, {volume: 0.5, interrupt: true});
const [timeLeft, setTimeLeft] = useState<{h: number; m: number; s: number}>(TimerUtils.calculateTimeLeft(props.endTime));
const [elapsedTimePercentage, setElapsedTimePercentage] = useState<number>(TimerUtils.calculateElapsedTimePercentage(props.startTime, props.endTime));
const [timesUpShouldPlay, setTimesUpShouldPlay] = useState(false);
Expand Down

0 comments on commit 293a60b

Please sign in to comment.