diff --git a/src/apollo/client.js b/src/apollo/client.js index 5c5b80b9..ba67f99e 100644 --- a/src/apollo/client.js +++ b/src/apollo/client.js @@ -17,3 +17,11 @@ export const compoundClient = new ApolloClient({ cache: new InMemoryCache(), shouldBatch: true }) + +export const indexedClient = new ApolloClient({ + link: new HttpLink({ + uri: 'https://api.thegraph.com/subgraphs/name/indexed-finance/indexed-governance' + }), + cache: new InMemoryCache(), + shouldBatch: true +}) diff --git a/src/assets/images/ndxLogo.png b/src/assets/images/ndxLogo.png new file mode 100644 index 00000000..1fef0509 Binary files /dev/null and b/src/assets/images/ndxLogo.png differ diff --git a/src/components/governance/Dropdown.tsx b/src/components/governance/Dropdown.tsx index 3a0341f1..3637d925 100644 --- a/src/components/governance/Dropdown.tsx +++ b/src/components/governance/Dropdown.tsx @@ -8,6 +8,7 @@ import { TYPE } from '../../theme' import { ChevronDown } from 'react-feather' import { SUPPORTED_PROTOCOLS } from '../../state/governance/reducer' import useOnClickOutside from '../../hooks/useClickOutside' +import Column from '../Column' const Wrapper = styled.div<{ backgroundColor?: string; open: boolean }>` width: 100%; @@ -26,20 +27,26 @@ const Wrapper = styled.div<{ backgroundColor?: string; open: boolean }>` // dont pass style props to DOM link element // eslint-disable-next-line @typescript-eslint/no-unused-vars -const Flyout = styled(({ backgroundColor, ...props }) => )` +const FlyoutContainer = styled(({ ...props }) => )` width: 100%; - padding: 1rem; position: absolute; - bottom: -68px; + top: 68px; left: 0px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; box-shadow: 0 10px 34px rgb(236 236 236 / 16%), 0 5px 6px rgb(140 140 140 / 23%); background-color: white; - text-decoration: none; z-index: 3; ` +// dont pass style props to DOM link element +// eslint-disable-next-line @typescript-eslint/no-unused-vars +const Flyout = styled(({ backgroundColor, ...props }) => )` + width: 100%; + padding: 1rem; + text-decoration: none; +` + export default function Dropdown() { const [activeProtocol] = useActiveProtocol() @@ -57,26 +64,28 @@ export default function Dropdown() { - {open && - activeProtocol && - Object.keys(SUPPORTED_PROTOCOLS) - .filter(k => SUPPORTED_PROTOCOLS[k].name !== activeProtocol.name) - .map((k, i) => ( - - - - - - {SUPPORTED_PROTOCOLS[k].name} - - - - - ))} + {open && activeProtocol && ( + + {Object.keys(SUPPORTED_PROTOCOLS) + .filter(k => SUPPORTED_PROTOCOLS[k].name !== activeProtocol.name) + .map((k, i) => ( + + + + + + {SUPPORTED_PROTOCOLS[k].name} + + + + + ))} + + )} ) } diff --git a/src/data/governance.ts b/src/data/governance.ts index 86c2d1a5..2315a691 100644 --- a/src/data/governance.ts +++ b/src/data/governance.ts @@ -217,7 +217,7 @@ export async function fetchProposals(client: any, key: string): Promise