mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: caliber discriminators for antagonist cannon selector
This commit is contained in:
1 parent
87d01dab3f
commit
a53c20fa6a
3 files changed
+23
-2
No files matched your search
@@ -6,6 +6,7 @@ export interface TankComponentButtonProps
|
||||
selected?: boolean;
|
||||
children?: ReactNode;
|
||||
discriminator?: ReactNode;
|
||||
secondaryDiscriminator?: ReactNode;
|
||||
disabled?: boolean;
|
||||
banner?: string;
|
||||
special?: boolean;
|
||||
@@ -16,6 +17,7 @@ export function TankComponentButton({
|
||||
variant,
|
||||
selected,
|
||||
discriminator,
|
||||
secondaryDiscriminator,
|
||||
special,
|
||||
children,
|
||||
banner,
|
||||
@@ -73,6 +75,22 @@ export function TankComponentButton({
|
||||
{discriminator}
|
||||
</Text>
|
||||
)}
|
||||
|
||||
{secondaryDiscriminator !== undefined && (
|
||||
<Text
|
||||
size="1"
|
||||
style={{
|
||||
textShadow: '0 0 4px black',
|
||||
position: 'absolute',
|
||||
bottom: '50%',
|
||||
right: 8,
|
||||
textAlign: 'right',
|
||||
}}
|
||||
color={variant === 'ghost' ? 'gray' : undefined}
|
||||
>
|
||||
{secondaryDiscriminator}
|
||||
</Text>
|
||||
)}
|
||||
</Button>
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user