Closed earth2travis closed 1 year ago
Looks like this is now in
import { DaoSettings } from "@daohaus/moloch-v3-macro-ui";
Once the new package is deployed you will do something this:
import { useDaoData } from '@daohaus/moloch-v3-hooks';
import { Keychain, ValidNetwork } from '@daohaus/keychain-utils';
import { MetadataSettings, ContractSettings, GovernanceSettings, ShamanSettings, TokenSettings } from '@daohaus/moloch-v3-macro-ui';
type DaoSettingsProps = {
daoChain: ValidNetwork;
daoId: string;
includeLinks?: boolean;
graphApiKeys?: Keychain;
};
export const DaoSettings = ({
daoChain,
daoId,
includeLinks = false,
graphApiKeys,
}: DaoSettingsProps) => {
const { dao } = useDaoData({
daoChain,
daoId,
graphApiKeys,
});
if (!dao) return null;
return (
<>
<MetadataSettings
dao={dao}
daoChain={daoChain}
includeLinks={includeLinks}
/>
<ContractSettings dao={dao} daoChain={daoChain} />
<GovernanceSettings
dao={dao}
daoChain={daoChain}
includeLinks={includeLinks}
/>
<TokenSettings
dao={dao}
daoChain={daoChain}
includeLinks={includeLinks}
/>
<ShamanSettings
dao={dao}
daoChain={daoChain}
includeLinks={includeLinks}
/>
</>
);
};
@skuhlmann the Update Metadata button on the Settings view is loading a blank page:
https://bison-narwhal.vercel.app/#/molochv3/0x64/0x8577c1a3caedd9a6bfa431176a9b94474cdffd9c/settings
Break Governance Settings and DAO Tokens into separate sections
Change Headings (and order):
Change Buttons