feat: enhance wallet billing features (#5293)

* feat: enhance wallet billing features with new dataset and points options

* chore: removed local state for dataset month and replaced it with form state management

* chore: remove redundant state
This commit is contained in:
酒川户
2025-07-23 18:22:28 +08:00
committed by GitHub
parent e008b21954
commit 662c790fe4
10 changed files with 394 additions and 157 deletions

View File

@@ -74,6 +74,7 @@ export const menuItemStyles: MenuItemProps = {
const MySelect = <T = any,>(
{
bg = '#fff',
placeholder,
value,
valueLabel,
@@ -223,6 +224,7 @@ const MySelect = <T = any,>(
_active={{
transform: 'none'
}}
bg={bg ? (isOpen ? '#fff' : bg) : '#fff'}
color={isOpen ? 'primary.700' : 'myGray.700'}
borderColor={isInvalid ? 'red.500' : isOpen ? 'primary.300' : 'myGray.200'}
boxShadow={
@@ -232,17 +234,7 @@ const MySelect = <T = any,>(
: '0px 0px 0px 2.4px rgba(51, 112, 255, 0.15)'
: 'none'
}
_hover={
isInvalid
? {
borderColor: 'red.400',
boxShadow: '0px 0px 0px 2.4px rgba(255, 0, 0, 0.15)'
}
: {
borderColor: 'primary.300',
boxShadow: '0px 0px 0px 2.4px rgba(51, 112, 255, 0.15)'
}
}
_hover={isInvalid ? { borderColor: 'red.400' } : { borderColor: 'primary.300' }}
{...props}
>
<Flex alignItems={'center'} justifyContent="space-between" w="100%">