mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-02-10 19:50:28 +08:00
disable import button when url is empty
This commit is contained in:
parent
14d7335caf
commit
935b95b01b
@ -51,7 +51,13 @@ const Profiles: React.FC = () => {
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
<Button size="sm" color="primary" isLoading={importing} onPress={handleImport}>
|
||||
<Button
|
||||
size="sm"
|
||||
color="primary"
|
||||
isDisabled={url === ''}
|
||||
isLoading={importing}
|
||||
onPress={handleImport}
|
||||
>
|
||||
导入
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user