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