Update StartRecording.tsx

This commit is contained in:
Spazzwan authored and GitHub committed 2022-08-09 21:33:07 +10:00
1 parent 12fc9f0377
commit 820b8b21ec
1 file changed
+2 -9
@@ -3,18 +3,11 @@ import { Button } from '../../../../commons/Button';
import { TipBox } from '../../../../commons/TipBox';
import { Typography } from '../../../../commons/Typography';
export function PreparationStep({
nextStep,
prevStep,
}: {
nextStep: () => void;
prevStep: () => void;
}) {
export function StartRecording({ nextStep, prevStep }: { nextStep: () => void; prevStep: () => void }) {
const { startRecording } = useAutobone();
const start = () => {
nextStep();
prevStep();
startRecording();
};
@@ -44,7 +37,7 @@ export function PreparationStep({
</div>
</div>
<div className="flex">
<div className="flex gap-3">
<Button variant="primary" onClick={prevStep}>
Previous step
</Button>