Skip to content

Commit

Permalink
style: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
italux committed Sep 20, 2024
1 parent 70c84e3 commit d317184
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/components/generate-code.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use client";

import { useRouter } from "next/navigation"; // Import useRouter
import { SVGProps } from "react"; // Import SVGProps
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
Expand All @@ -13,8 +11,9 @@ import {
setDoc,
Timestamp,
} from "firebase/firestore";
import { useState } from "react";
import Link from "next/link";
import { useRouter } from "next/navigation"; // Import useRouter
import { SVGProps, useState } from "react"; // Import SVGProps

export function GenerateCode() {
const router = useRouter(); // Initialize router
Expand Down
8 changes: 3 additions & 5 deletions src/components/karaoke.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { useRouter } from "next/navigation";
import { JSX, SVGProps, useEffect, useState } from "react";
import { db } from "@/firebase/firebaseConfig";
import {
addDoc,
Expand All @@ -19,6 +17,8 @@ import {
setDoc,
updateDoc,
} from "firebase/firestore";
import { useRouter } from "next/navigation";
import { JSX, SVGProps, useEffect, useState } from "react";

const youtubeUrlRegex =
/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/|v\/|shorts\/)?([a-zA-Z0-9_-]{11})(?:\S+)?$/;
Expand Down Expand Up @@ -416,9 +416,7 @@ export function Karaoke({ code }: { code: string }) {
);
}

function HomeIcon(
props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>
) {
function HomeIcon(props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) {
return (
<svg
{...props}
Expand Down

0 comments on commit d317184

Please sign in to comment.