mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: add dialog titles
This commit is contained in:
1 parent
f0ca38e828
commit
bac2f097f2
8 files changed
+39
-24
No files matched your search
@@ -34,6 +34,8 @@ export function Controls({
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title align="center">Add tanks</Dialog.Title>
|
||||
|
||||
<Flex gap="4" direction="column">
|
||||
<Flex
|
||||
direction="column"
|
||||
|
||||
@@ -42,6 +42,8 @@ export function TankControl({ index, id }: TankControlProps) {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title align="center">Switch tanks</Dialog.Title>
|
||||
|
||||
<Flex gap="4" direction="column">
|
||||
<Flex
|
||||
direction="column"
|
||||
|
||||
@@ -607,6 +607,8 @@ export default function Page() {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title>Jump to score</Dialog.Title>
|
||||
|
||||
<Flex gap="4" justify="center">
|
||||
<TextField.Root
|
||||
ref={scoreInput}
|
||||
@@ -640,6 +642,8 @@ export default function Page() {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title>Jump to position</Dialog.Title>
|
||||
|
||||
<Flex gap="4" justify="center">
|
||||
<TextField.Root
|
||||
ref={positionInput}
|
||||
@@ -676,6 +680,8 @@ export default function Page() {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title>Jump to league</Dialog.Title>
|
||||
|
||||
<Flex gap="2" justify="center">
|
||||
<Select.Root
|
||||
value={`${jumpToLeague}`}
|
||||
@@ -761,6 +767,8 @@ export default function Page() {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title>Jump to player</Dialog.Title>
|
||||
|
||||
<Flex gap="4" direction="column">
|
||||
<TextField.Root
|
||||
onChange={debounce(
|
||||
|
||||
+1
-2
@@ -4,7 +4,6 @@ import {
|
||||
Button,
|
||||
Dialog,
|
||||
Flex,
|
||||
Heading,
|
||||
Spinner,
|
||||
Text,
|
||||
} from '@radix-ui/themes';
|
||||
@@ -36,7 +35,7 @@ export function VoteCaster() {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content maxWidth="23rem">
|
||||
<Heading>Voting for {tank.name}</Heading>
|
||||
<Dialog.Title>Voting for {tank.name}</Dialog.Title>
|
||||
|
||||
<Flex direction="column" mt="4">
|
||||
<Flex align="center" justify="between">
|
||||
|
||||
@@ -57,6 +57,8 @@ export function MetaSection() {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title>Swap tanks</Dialog.Title>
|
||||
|
||||
<TankSearch
|
||||
compact
|
||||
onSelect={(tank) => {
|
||||
|
||||
@@ -360,6 +360,8 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title align="center">Select tank</Dialog.Title>
|
||||
|
||||
<Tabs.Root
|
||||
value={tab}
|
||||
onValueChange={setTab}
|
||||
|
||||
@@ -69,6 +69,8 @@ export function Title() {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Title align="center">Change tank</Dialog.Title>
|
||||
|
||||
<Flex gap="4" direction="column">
|
||||
<Flex
|
||||
direction="column"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Button, ButtonProps, Dialog, Flex, Text } from '@radix-ui/themes';
|
||||
import { Button, ButtonProps, Dialog, Flex } from '@radix-ui/themes';
|
||||
import { REGIONS } from '../../../constants/regions';
|
||||
import { WARGAMING_APPLICATION_ID } from '../../../constants/wargamingApplicationID';
|
||||
import { WargamingIcon } from '../../../icons/Wargaming';
|
||||
@@ -21,28 +21,26 @@ export function WargamingLoginButton({ children, ...props }: ButtonProps) {
|
||||
</Dialog.Trigger>
|
||||
|
||||
<Dialog.Content width="fit-content">
|
||||
<Flex direction="column" gap="4" align="center">
|
||||
<Text color="gray">Choose your region</Text>
|
||||
<Dialog.Title align="center">Choose your region</Dialog.Title>
|
||||
|
||||
<Flex gap="2" wrap="wrap">
|
||||
{REGIONS.map((region) => (
|
||||
<Dialog.Close key={region}>
|
||||
<Link
|
||||
href={
|
||||
typeof window !== 'undefined'
|
||||
? `https://api.worldoftanks.${region}/wot/auth/login/?application_id=${WARGAMING_APPLICATION_ID}&redirect_uri=${encodeURIComponent(
|
||||
`${location.origin}/auth/wargaming?return=${location.origin}${location.pathname}`,
|
||||
)}`
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
<Button color="red">
|
||||
{strings.common.regions.normal[region]}
|
||||
</Button>
|
||||
</Link>
|
||||
</Dialog.Close>
|
||||
))}
|
||||
</Flex>
|
||||
<Flex gap="2" wrap="wrap">
|
||||
{REGIONS.map((region) => (
|
||||
<Dialog.Close key={region}>
|
||||
<Link
|
||||
href={
|
||||
typeof window !== 'undefined'
|
||||
? `https://api.worldoftanks.${region}/wot/auth/login/?application_id=${WARGAMING_APPLICATION_ID}&redirect_uri=${encodeURIComponent(
|
||||
`${location.origin}/auth/wargaming?return=${location.origin}${location.pathname}`,
|
||||
)}`
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
<Button color="red">
|
||||
{strings.common.regions.normal[region]}
|
||||
</Button>
|
||||
</Link>
|
||||
</Dialog.Close>
|
||||
))}
|
||||
</Flex>
|
||||
</Dialog.Content>
|
||||
</Dialog.Root>
|
||||
|
||||
Reference in new issue
Block a user