mirror of
https://github.com/FranP-code/spooky-spotify-showcase.git
synced 2025-10-13 00:02:36 +00:00
Login page component
This commit is contained in:
12
src/app/_components/login-page.tsx
Normal file
12
src/app/_components/login-page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import SpotifyLogin from "./spotify-login";
|
||||
|
||||
export function LoginPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Spooky Spotify Showcase</h1>
|
||||
<SpotifyLogin />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default LoginPage;
|
||||
@@ -3,6 +3,7 @@ import { api, HydrateClient } from "@/trpc/server";
|
||||
import SpotifyLogin from "./_components/spotify-login";
|
||||
import SpotifyData from "./_components/spotify-data";
|
||||
import SpotifyWebApi from "spotify-web-api-node";
|
||||
import LoginPage from "./_components/login-page";
|
||||
|
||||
export default async function Home({
|
||||
searchParams,
|
||||
@@ -46,7 +47,7 @@ export default async function Home({
|
||||
refreshToken={refresh_token as string}
|
||||
/>
|
||||
) : (
|
||||
<SpotifyLogin />
|
||||
<LoginPage />
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user