From 1d3bf69f46710ccb3ba876f572085eac457627a5 Mon Sep 17 00:00:00 2001 From: Oleg Kalenik Date: Wed, 19 Jan 2022 11:44:32 +0200 Subject: [PATCH] #1 - Prioritize Weekly Active DAOs and Weekly Active Users - set default view to active DAOs on general page --- .../general-info/active-dao/active-dao.tsx | 6 ++++- src/app/general-info/general-info.tsx | 24 +++++++++---------- src/app/root/app.tsx | 2 +- src/constants/routes.ts | 2 +- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/app/general-info/active-dao/active-dao.tsx b/src/app/general-info/active-dao/active-dao.tsx index e230930..9f543c0 100644 --- a/src/app/general-info/active-dao/active-dao.tsx +++ b/src/app/general-info/active-dao/active-dao.tsx @@ -116,7 +116,11 @@ export const ActiveDao: FC = () => { period={period} setPeriod={setPeriod} lines={[ - { name: 'Active DAOs', color: '#E33F84', dataKey: 'count' }, + { + name: 'Weekly Active DAOs', + color: '#E33F84', + dataKey: 'count', + }, ]} /> ) : null} diff --git a/src/app/general-info/general-info.tsx b/src/app/general-info/general-info.tsx index e61b71f..80a6746 100644 --- a/src/app/general-info/general-info.tsx +++ b/src/app/general-info/general-info.tsx @@ -65,35 +65,35 @@ export const GeneralInfo: FC = () => { history.push(routes.generalInfo)} active={Boolean( matchPath(location.pathname, { path: ROUTES.generalInfo, exact: true, }), )} - onClick={() => history.push(routes.generalInfo)} > history.push(routes.generalInfoActiveDao)} active={Boolean( matchPath(location.pathname, { - path: ROUTES.generalInfoActiveDao, + path: ROUTES.generalInfoDaoCount, exact: true, }), )} + onClick={() => history.push(routes.generalInfoDaoCount)} > @@ -134,11 +134,11 @@ export const GeneralInfo: FC = () => {
- + ( />