Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
namanagar committed Jan 14, 2025
1 parent fa1e217 commit ce075d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export function PlaygroundAudioControls({
return mins === "00" ? `${secs}s` : `${mins}:${secs}`;
};

const handlePlayPause = () => {
const handlePlayPause = async () => {
if (!audioRef.current || !audioUrl) return;

if (isPlaying) {
audioRef.current.pause();
} else {
audioRef.current.play();
await audioRef.current.play();
}
setIsPlaying(!isPlaying);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { FernButton, FernButtonGroup, FernCard } from "@fern-docs/components";
import {
Microphone,
MicrophoneSpeaking,
Page,
Undo,
Xmark,
} from "iconoir-react";
import { Microphone, MicrophoneSpeaking, Page, Xmark } from "iconoir-react";
import cn from "clsx";
import numeral from "numeral";
import { ChangeEvent, DragEventHandler, memo, useRef, useState } from "react";
Expand All @@ -25,10 +19,10 @@ export interface PlaygroundFileUploadFormProps {

export const PlaygroundFileUploadForm = memo<PlaygroundFileUploadFormProps>(
({
id,
propertyKey,
// id,
// propertyKey,
type,
isOptional,
// isOptional,
onValueChange,
value,
allowAudioRecording = true,
Expand Down Expand Up @@ -191,3 +185,5 @@ export const PlaygroundFileUploadForm = memo<PlaygroundFileUploadFormProps>(
);
}
);

PlaygroundFileUploadForm.displayName = "PlaygroundFileUploadForm";
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
FernTextarea,
} from "@fern-docs/components";
import { ReactElement, memo, useCallback } from "react";
import { useDomain, useEdgeFlags } from "../../atoms";
import { useEdgeFlags } from "../../atoms";
import { WithLabel } from "../WithLabel";
import { PlaygroundDiscriminatedUnionForm } from "./PlaygroundDescriminatedUnionForm";
import { PlaygroundElevenLabsVoiceIdForm } from "./PlaygroundElevenLabsVoiceIdForm";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { motion } from "framer-motion";

export function WaveformAnimation({ volume }: { volume: number }) {
return (
<div className="flex h-full w-full items-center justify-between gap-0.5">
<div className="flex size-full items-center justify-between gap-0.5">
{Array.from({ length: 20 }).map((_, i) => (
<motion.div
key={i}
Expand Down

0 comments on commit ce075d7

Please sign in to comment.