From 36a0a304d53e7d217a866293421c8261a4b404b1 Mon Sep 17 00:00:00 2001 From: Prayas Lashkari Date: Fri, 13 Mar 2026 00:17:08 -0400 Subject: [PATCH] refactor: clean up imports and streamline JSX formatting in LaunchWindow component --- src/components/launch/LaunchWindow.tsx | 52 ++++++-------------------- tailwind.config.cjs | 6 +-- 2 files changed, 13 insertions(+), 45 deletions(-) diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx index 747d7d5..b456dd6 100644 --- a/src/components/launch/LaunchWindow.tsx +++ b/src/components/launch/LaunchWindow.tsx @@ -1,24 +1,17 @@ +import { ChevronDown } from "lucide-react"; import { useEffect, useState } from "react"; import { BsRecordCircle } from "react-icons/bs"; import { FaRegStopCircle } from "react-icons/fa"; import { FaFolderOpen } from "react-icons/fa6"; import { FiMinus, FiX } from "react-icons/fi"; -import { - MdMic, - MdMicOff, - MdMonitor, - MdVideoFile, - MdVolumeOff, - MdVolumeUp, -} from "react-icons/md"; +import { MdMic, MdMicOff, MdMonitor, MdVideoFile, MdVolumeOff, MdVolumeUp } from "react-icons/md"; import { RxDragHandleDots2 } from "react-icons/rx"; -import { ChevronDown } from "lucide-react"; -import { Tooltip } from "../ui/tooltip"; import { useAudioLevelMeter } from "../../hooks/useAudioLevelMeter"; import { useMicrophoneDevices } from "../../hooks/useMicrophoneDevices"; import { useScreenRecorder } from "../../hooks/useScreenRecorder"; import { formatTimePadded } from "../../utils/timeUtils"; import { AudioLevelMeter } from "../ui/audio-level-meter"; +import { Tooltip } from "../ui/tooltip"; import styles from "./LaunchWindow.module.css"; const ICON_SIZE = 20; @@ -168,9 +161,7 @@ export function LaunchWindow() { return (
-
+
{/* Mic controls panel */} {showMicControls && (
@@ -302,18 +280,10 @@ export function LaunchWindow() { {/* Window controls */}
- -
diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 22597cf..83f9126 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -29,10 +29,8 @@ module.exports = { "mic-panel-in": "mic-panel-in 0.15s ease-out", }, boxShadow: { - "hud-bar": - "0 2px 16px rgba(0, 0, 0, 0.25), 0 0 40px rgba(100, 80, 200, 0.08)", - "mic-panel": - "0 2px 12px rgba(0, 0, 0, 0.2), 0 0 30px rgba(100, 80, 200, 0.06)", + "hud-bar": "0 2px 16px rgba(0, 0, 0, 0.25), 0 0 40px rgba(100, 80, 200, 0.08)", + "mic-panel": "0 2px 12px rgba(0, 0, 0, 0.2), 0 0 30px rgba(100, 80, 200, 0.06)", }, borderRadius: { lg: "var(--radius)",