mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 13:22:08 +00:00
Finished the env overview feature
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
import Head from 'next/head';
|
||||
import { useRouter } from 'next/router';
|
||||
import { useTranslation } from 'next-i18next';
|
||||
import queryString from 'query-string';
|
||||
|
||||
import { getTranslatedServerSideProps } from '@app/components/utilities/withTranslateProps';
|
||||
// import { DashboardPage } from '@app/views/DashboardPage';
|
||||
import { DashboardPage } from '@app/views/DashboardPage';
|
||||
import { DashboardEnvOverview } from '@app/views/DashboardPage/DashboardEnvOverview';
|
||||
|
||||
const Dashboard = () => {
|
||||
const { t } = useTranslation();
|
||||
const router = useRouter();
|
||||
|
||||
const env = queryString.parse(router.asPath.split('?')[1])?.env;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
@@ -16,8 +22,9 @@ const Dashboard = () => {
|
||||
<meta property="og:title" content={String(t('dashboard:og-title'))} />
|
||||
<meta name="og:description" content={String(t('dashboard:og-description'))} />
|
||||
</Head>
|
||||
{/* <DashboardPage /> */}
|
||||
<DashboardEnvOverview />
|
||||
{env
|
||||
? <DashboardPage envFromTop={String(env)}/>
|
||||
: <DashboardEnvOverview />}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user