From 356a334be5d88cc915c8b56126495f64a56e5b7a Mon Sep 17 00:00:00 2001 From: KevinOomen Date: Tue, 18 Jun 2024 16:05:17 +0200 Subject: [PATCH] removed old code --- src/app/page/layout.tsx | 11 ---------- src/app/page/page.tsx | 14 ------------ src/app/song/page.tsx | 47 ----------------------------------------- 3 files changed, 72 deletions(-) delete mode 100644 src/app/page/layout.tsx delete mode 100644 src/app/page/page.tsx delete mode 100644 src/app/song/page.tsx diff --git a/src/app/page/layout.tsx b/src/app/page/layout.tsx deleted file mode 100644 index 2b861e1..0000000 --- a/src/app/page/layout.tsx +++ /dev/null @@ -1,11 +0,0 @@ -export default function RootLayout({ - children, - }: { - children: React.ReactNode - }) { - return ( - - {children} - - ) - } \ No newline at end of file diff --git a/src/app/page/page.tsx b/src/app/page/page.tsx deleted file mode 100644 index bf19839..0000000 --- a/src/app/page/page.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { getSongs } from "../../lib/useSongs"; - -export default async function Annotations() { - - const data = await getSongs() - - return ( -
- {data.map((song) => ( -

{song.name}

- ))} -
- ); -} diff --git a/src/app/song/page.tsx b/src/app/song/page.tsx deleted file mode 100644 index 08e2ec2..0000000 --- a/src/app/song/page.tsx +++ /dev/null @@ -1,47 +0,0 @@ -'use client'; - -import React, { useState, useEffect } from 'react'; -import AudioPlayer from '../../components/AudioPlayer'; -import { getSong } from "../../lib/useSongs"; -import { Song } from "../../types"; - -export default function SongPage() { - - const [data, setData] = useState({} as Song); - const [error, setError] = useState(null); - - useEffect(() => { - const getData = async () => { - try { - const songData = await getSong(); - setData(songData); - } catch (error) { - } - }; - - getData(); - }, []); - - //const test = document.getElementById("test") as HTMLAudioElement; - - /*const play = () => { - test?.play(); - } - - const pause = () => { - test?.pause(); - } - - function Duration(){ - return

{test?.duration}

; - }*/ - - return ( -
- {data.name} - {data.adress} - -
- ); - } - \ No newline at end of file