Skip to content

Commit

Permalink
added step by step review (in progress)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Sep 15, 2024
1 parent 45f11cc commit 913acc1
Show file tree
Hide file tree
Showing 16 changed files with 1,336 additions and 401 deletions.
6 changes: 3 additions & 3 deletions src/Components/Files/AudioCaptureDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useEffect, useState } from "react";
import useRecorder from "../../Utils/useRecorder";
import { Link } from "raviger";
import CareIcon from "../../CAREUI/icons/CareIcon";
import { useTimer } from "../../Utils/useTimer";
import { t } from "i18next";
import useVoiceRecorder from "../../Utils/useVoiceRecorder";

export interface AudioCaptureDialogProps {
show: boolean;
Expand All @@ -23,8 +23,8 @@ export default function AudioCaptureDialog(props: AudioCaptureDialogProps) {

const [status, setStatus] = useState<Status | null>(null);

const [audioURL, , startRecording, stopRecording, , resetRecording] =
useRecorder((permission: boolean) => {
const { audioURL, resetRecording, startRecording, stopRecording } =
useVoiceRecorder((permission: boolean) => {
if (!permission) {
handleStopRecording();
resetRecording();
Expand Down
Loading

0 comments on commit 913acc1

Please sign in to comment.