Merge pull request #319 from public-awesome/batch-remove-wl-members

Batch remove members from whitelists
This commit is contained in:
Serkan Reis 2024-01-25 11:08:40 +02:00 committed by GitHub
commit 8ceacb6725
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ const WhitelistExecutePage: NextPage = () => {
const showLimitState = isEitherType(type, ['update_per_address_limit', 'increase_member_limit'])
const showTimestamp = isEitherType(type, ['update_start_time', 'update_end_time'])
const showMemberList = isEitherType(type, ['add_members'])
const showMemberList = isEitherType(type, ['add_members', 'remove_members'])
const showFlexMemberList = isEitherType(type, ['add_members'])
const showRemoveMemberList = isEitherType(type, ['remove_members'])
const showAdminList = isEitherType(type, ['update_admins'])
@ -278,7 +278,11 @@ const WhitelistExecutePage: NextPage = () => {
subtitle={type === 'update_admins' ? 'Enter the admin addresses' : 'Enter the member addresses'}
title="Addresses"
/>
<Conditional test={whitelistType === 'standard' && showMemberList}>
<Conditional
test={
(whitelistType === 'standard' && showMemberList) || (whitelistType === 'flex' && showRemoveMemberList)
}
>
<Alert className="mt-8" type="info">
You may optionally choose a text file of additional member addresses.
</Alert>