Skip to content

Commit

Permalink
Fix settings page modal members
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Feb 1, 2024
1 parent 2246eaa commit 0efcdcd
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/containers/settings/gaslessVoting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import {useGlobalModalContext} from '../../../context/globalModals';
import ModalBottomSheetSwitcher from '../../../components/modalBottomSheetSwitcher';
import {FilteredAddressList} from '../../../components/filteredAddressList';
import {MultisigWalletField} from '../../../components/multisigWallets/row';
import {CHAIN_METADATA} from '../../../utils/constants';
import {useNetwork} from '../../../context/network';

const GaslessVotingSettings: React.FC<IPluginSettings> = ({daoDetails}) => {
const {t} = useTranslation();
Expand Down Expand Up @@ -49,7 +51,6 @@ const GaslessVotingSettings: React.FC<IPluginSettings> = ({daoDetails}) => {

return (
<>
{/* COMMUNITY SECTION */}
<SettingsCard title={t('label.executionMultisig')}>
<DescriptionPair>
<Term>{t('labels.members')}</Term>
Expand Down Expand Up @@ -81,6 +82,10 @@ const GaslessVotingSettings: React.FC<IPluginSettings> = ({daoDetails}) => {
})}
</Definition>
</DescriptionPair>
<DescriptionPair>
<Term>DEV Wrapped token</Term>
<Definition>{String(votingSettings.hasGovernanceEnabled)}</Definition>
</DescriptionPair>
</SettingsCard>
<CustomCommitteeAddressesModal
wallets={
Expand All @@ -100,6 +105,7 @@ const CustomCommitteeAddressesModal = ({
wallets: MultisigWalletField[];
}) => {
const {isOpen, close} = useGlobalModalContext('committeeMembers');
const {network} = useNetwork();

/*************************************************
* Render *
Expand All @@ -110,7 +116,15 @@ const CustomCommitteeAddressesModal = ({
onClose={close}
data-testid="communityModal"
>
<FilteredAddressList wallets={wallets} />
<FilteredAddressList
wallets={wallets}
onVoterClick={user => {
window.open(
`${CHAIN_METADATA[network].explorer}address/${user}`,
'_blank'
);
}}
/>
</ModalBottomSheetSwitcher>
);
};
Expand Down

0 comments on commit 0efcdcd

Please sign in to comment.