Skip to content

Commit

Permalink
Remove manage member button
Browse files Browse the repository at this point in the history
Not needed anymore, the executive committee members are going to be modified using the edit settings form
  • Loading branch information
selankon committed Jan 8, 2024
1 parent c345445 commit 583a449
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import useScreen from 'hooks/useScreen';
import {CHAIN_METADATA} from 'utils/constants';
import {featureFlags} from 'utils/featureFlags';
import {shortenAddress, toDisplayEns} from 'utils/library';
import {EditSettings, ManageMembersProposal} from 'utils/paths';
import {EditSettings} from 'utils/paths';
import GaslessVotingSettings from '../containers/settings/gaslessVoting';
import {useIsMember} from 'services/aragon-sdk/queries/use-is-member';
import {useWallet} from 'hooks/useWallet';
Expand All @@ -53,7 +53,6 @@ export const Settings: React.FC = () => {

const pluginAddress = daoDetails?.plugins?.[0]?.instanceAddress as string;
const pluginType = daoDetails?.plugins?.[0]?.id as PluginTypes;
const isGasless = pluginType === GaselessPluginName;

const {data: isMember} = useIsMember({
address: address as string,
Expand All @@ -75,7 +74,7 @@ export const Settings: React.FC = () => {
const showUpdatesCard = updateExists && isMember && daoUpdateEnabled;

return (
<SettingsWrapper isGasless={isGasless}>
<SettingsWrapper>
{showUpdatesCard && (
<div className={`mt-1 xl:mt-3 ${styles.fullWidth}`}>
<SettingsUpdateCard />
Expand Down Expand Up @@ -327,10 +326,7 @@ const PluginSettingsWrapper: React.FC<IPluginSettings> = ({daoDetails}) => {
}
};

const SettingsWrapper: React.FC<{children: ReactNode; isGasless: boolean}> = ({
children,
isGasless,
}) => {
const SettingsWrapper: React.FC<{children: ReactNode}> = ({children}) => {
const {t} = useTranslation();
const {isMobile} = useScreen();

Expand All @@ -346,15 +342,6 @@ const SettingsWrapper: React.FC<{children: ReactNode; isGasless: boolean}> = ({
iconLeft: isMobile ? <IconGovernance /> : undefined,
onClick: () => navigate(generatePath(EditSettings, {network, dao})),
}}
secondaryBtnProps={
isGasless
? {
label: t('labels.manageMember'),
onClick: () =>
navigate(generatePath(ManageMembersProposal, {network, dao})),
}
: undefined
}
customBody={<>{children}</>}
/>
);
Expand Down

0 comments on commit 583a449

Please sign in to comment.