make the link dynamic

This commit is contained in:
2026-04-17 16:03:17 +01:00
parent c8383955d5
commit 2ab775514e
+5 -1
View File
@@ -197,7 +197,11 @@ export default function AppleStyleAuth() {
{/* 4. BOTÃO GOOGLE */} {/* 4. BOTÃO GOOGLE */}
<button <button
onClick={() => keycloak.login({ redirectUri: "http://localhost:3000/create-news" })} onClick={() =>
keycloak.login({
redirectUri: `${window.location.origin}/create-news`,
})
}
className="group flex w-full items-center justify-center gap-3 rounded-2xl border border-neutral-200 bg-white px-6 py-3.5 transition-all hover:bg-neutral-50 active:scale-[0.98] dark:border-neutral-800 dark:bg-transparent dark:hover:bg-neutral-900" className="group flex w-full items-center justify-center gap-3 rounded-2xl border border-neutral-200 bg-white px-6 py-3.5 transition-all hover:bg-neutral-50 active:scale-[0.98] dark:border-neutral-800 dark:bg-transparent dark:hover:bg-neutral-900"
> >
<svg className="h-5 w-5" viewBox="0 0 24 24"> <svg className="h-5 w-5" viewBox="0 0 24 24">