feat(subscribe): Update suffix from 'MB' to 'Mbps' and enhance speed limit display logic

This commit is contained in:
web@ppanel
2025-01-08 11:14:16 +07:00
parent 10d322f1ba
commit 3547bb1596
3 changed files with 8 additions and 3 deletions
@@ -190,7 +190,7 @@ export default function NodeForm<T extends { [x: string]: any }>({
onValueChange={(value) => {
form.setValue(field.name, value);
}}
suffix='MB'
suffix='Mbps'
/>
</FormControl>
<FormMessage />
@@ -277,7 +277,7 @@ export default function SubscribeForm<T extends Record<string, any>>({
{...field}
formatInput={(value) => unitConversion('bitsToMb', value)}
formatOutput={(value) => unitConversion('mbToBits', value)}
suffix='MB'
suffix='Mbps'
onValueChange={(value) => {
form.setValue(field.name, value);
}}