From 0e0005e8b78738f7c73e3082a16c38ea3ae4f864 Mon Sep 17 00:00:00 2001 From: amy Date: Tue, 24 Dec 2024 22:25:44 +0330 Subject: [PATCH] bruh --- review/App.tsx | 107 ++++++++++++++++++++++++++++--------------------- 1 file changed, 62 insertions(+), 45 deletions(-) diff --git a/review/App.tsx b/review/App.tsx index bc02f33..b1a1d10 100644 --- a/review/App.tsx +++ b/review/App.tsx @@ -1,51 +1,68 @@ -import '../src/App.css' -import "./reviewed.css" -import { sendReview } from '../src/components/api' +import "../src/App.css"; +import "./reviewed.css"; +import { sendReview } from "../src/components/api"; export default function App() { - const token = window.location.hash.substring(window.location.hash.indexOf("access_token") + "access_token".length + 1).substring(0, 30) - console.log(token) - if (token === "") { - window.location.href = "https://discord.com/oauth2/authorize?client_id=1208380910525743134&response_type=token&redirect_uri=https%3A%2F%2Fexhq.dev%2Freview%2F&scope=identify" - } - let ref!: HTMLTextAreaElement; - return
-
- - (it doesnt) - + const token = window.location.hash + .substring( + window.location.hash.indexOf("access_token") + "access_token".length + 1, + ) + .substring(0, 30); + console.log(token); + if (token === "") { + window.location.href = + "https://discord.com/oauth2/authorize?client_id=1208380910525743134&response_type=code&redirect_uri=https%3A%2F%2Famy.rip%2Freview%2F&scope=identify"; + } + let ref!: HTMLTextAreaElement; + return ( +
+
+ + (it doesnt) + -
- -
+
+
+
+ ); } -