fix: logsin

This commit is contained in:
TrèsAbhi committed 2024-09-15 16:20:11 -05:00
1 parent 8670e5f9a7
commit 85491c7f22
16 files changed
+47 -38

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ const isBranchNamed =
<GearIcon />
</Link>
<NavbarAccount client:idle />
<NavbarAccount client:load />
</Flex>
</Flex>
</Flex>
@@ -28,7 +28,7 @@ export function WargamingLoginButton({ children, ...props }: ButtonProps) {
href={
typeof window !== 'undefined'
? `https://api.worldoftanks.${region}/wot/auth/login/?application_id=${assertSecret(
process.env.PUBLIC_WARGAMING_APPLICATION_ID,
import.meta.env.PUBLIC_WARGAMING_APPLICATION_ID,
)}&redirect_uri=${encodeURIComponent(
`${location.origin}/auth/wargaming?return=${location.origin}${location.pathname}`,
)}`
@@ -1,6 +1,5 @@
---
import { Flex, Theme } from '@radix-ui/themes';
import '@radix-ui/themes/styles.css';
import Footer from '../components/Footer.astro';
import Navbar from '../components/Navbar.astro';
import Party3 from '../components/Party3.astro';
@@ -9,7 +8,9 @@ const { pathname } = Astro.url;
const isRoot = pathname === '/';
---
<style>
<style is:global>
@import '@radix-ui/themes/styles.css';
body {
margin: 0;
}
@@ -0,0 +1,13 @@
import { Button, Popover } from '@radix-ui/themes';
export function TestComponent() {
return (
<Popover.Root>
<Popover.Trigger>
<Button>Radix UI</Button>
</Popover.Trigger>
<Popover.Content>Content</Popover.Content>
</Popover.Root>
);
}
+11
View File
@@ -0,0 +1,11 @@
---
import { Theme } from '@radix-ui/themes';
import '@radix-ui/themes/styles.css';
import { TestComponent } from './TestComponent';
---
Minimal!
<Theme>
<TestComponent client:only="react" />
</Theme>