0xBootleggers / bufficorn

Bufficorn Ventures Custom DAO App
https://bufficorn.vercel.app
MIT License
0 stars 1 forks source link

Update Settings View #8

Closed earth2travis closed 1 year ago

earth2travis commented 1 year ago

Break Governance Settings and DAO Tokens into separate sections

Change Headings (and order):

Change Buttons

earth2travis commented 1 year ago

Looks like this is now in

import { DaoSettings } from "@daohaus/moloch-v3-macro-ui";
skuhlmann commented 1 year ago

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}
      />
    </>
  );
};
earth2travis commented 1 year ago

Image

earth2travis commented 1 year ago

https://github.com/0xBootleggers/bufficorn/pull/55

earth2travis commented 1 year ago

@skuhlmann the Update Metadata button on the Settings view is loading a blank page:

https://bison-narwhal.vercel.app/#/molochv3/0x64/0x8577c1a3caedd9a6bfa431176a9b94474cdffd9c/settings

Image