This commit is contained in:
amy 2024-08-26 12:57:16 +03:30
parent 028f513797
commit 8b2caf99e7

View file

@ -4,8 +4,9 @@ import { sendReview } from '../src/components/api'
export default function App() { export default function App() {
const token = window.location.hash.substring(window.location.hash.indexOf("access_token") + "access_token".length + 1).substring(0, 30) const token = window.location.hash.substring(window.location.hash.indexOf("access_token") + "access_token".length + 1).substring(0, 30)
console.log(token)
let ref!: HTMLTextAreaElement; let ref!: HTMLTextAreaElement;
return <div class='reviewOuterparent'> return token !== "" ? <div class='reviewOuterparent'>
<div class='reviewParent'> <div class='reviewParent'>
<textarea <textarea
ref={ref} ref={ref}
@ -40,6 +41,6 @@ export default function App() {
}} class='sendButton'>send yo shi</button> }} class='sendButton'>send yo shi</button>
</div> </div>
</div> </div>
</div> </div> : <div> fuckin dumbass doesnt know how to AUTHENTICATE BEFORE TRYING TO REVIEW</div>
} }