diff --git a/packages/govern-console/.prettierrc.json b/packages/govern-console/.prettierrc.json index ca8527e0..d81ae90a 100644 --- a/packages/govern-console/.prettierrc.json +++ b/packages/govern-console/.prettierrc.json @@ -3,5 +3,6 @@ "trailingComma": "all", "singleQuote": true, "printWidth": 100, - "tabWidth": 2 + "tabWidth": 2, + "endOfLine":"auto" } diff --git a/packages/govern-console/src/containers/HomePage/HomePage.tsx b/packages/govern-console/src/containers/HomePage/HomePage.tsx index d24c2124..6d589e9e 100644 --- a/packages/govern-console/src/containers/HomePage/HomePage.tsx +++ b/packages/govern-console/src/containers/HomePage/HomePage.tsx @@ -14,6 +14,7 @@ import DaoHomePage from 'containers/DAO/DaoHomePage'; import { trackPage } from 'services/analytics'; import ConsoleMainPage from 'containers/Console/ConsoleMainPage'; import { ModalsProvider } from 'containers/HomePage/ModalsContext'; +import NoPageFound from './NoPageFound'; const Container = styled.div` display: grid; @@ -54,6 +55,7 @@ const HomePage = () => { + diff --git a/packages/govern-console/src/containers/ProposalDetails/ProposalDetails.tsx b/packages/govern-console/src/containers/ProposalDetails/ProposalDetails.tsx index 2d805208..29ef7e67 100644 --- a/packages/govern-console/src/containers/ProposalDetails/ProposalDetails.tsx +++ b/packages/govern-console/src/containers/ProposalDetails/ProposalDetails.tsx @@ -448,8 +448,6 @@ const ProposalDetails: React.FC = () => { return
Loading...
; } - console.log(proposalInfo?.payload); - return ( history.goBack()}> diff --git a/packages/govern-console/src/hooks/query-hooks.tsx b/packages/govern-console/src/hooks/query-hooks.tsx index 7346e903..3c9d455a 100644 --- a/packages/govern-console/src/hooks/query-hooks.tsx +++ b/packages/govern-console/src/hooks/query-hooks.tsx @@ -111,6 +111,7 @@ export function useProposalListQuery(queueId: string) { // const [proposalList, setProposalList] = useState(null); const { loading, data, error, refetch } = useQuery(PROPOSAL_LIST, { variables: { id: queueId }, + fetchPolicy: 'no-cache', }); // onCompleted doesn't work with lazyQuery when clicked on `fetchMore`.