Implement payments for app deployments #17

Merged
nabarun merged 27 commits from iv-integrate-payments into main 2024-10-28 09:46:19 +00:00
Showing only changes of commit a0e6add04d - Show all commits

View File

@ -17,7 +17,7 @@ interface StopwatchProps extends Omit<FormatMilliSecondProps, 'time'> {
} }
const Stopwatch = ({ offsetTimestamp, isPaused, ...props }: StopwatchProps) => { const Stopwatch = ({ offsetTimestamp, isPaused, ...props }: StopwatchProps) => {
const { totalSeconds, pause } = useStopwatch({ const { totalSeconds, pause, start } = useStopwatch({
autoStart: true, autoStart: true,
offsetTimestamp: offsetTimestamp, offsetTimestamp: offsetTimestamp,
}); });
@ -25,6 +25,8 @@ const Stopwatch = ({ offsetTimestamp, isPaused, ...props }: StopwatchProps) => {
useEffect(() => { useEffect(() => {
if (isPaused) { if (isPaused) {
pause(); pause();
} else {
start();
} }
}, [isPaused]); }, [isPaused]);