Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/dashboard/app/[daoId]/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default async function DaoLayout({ children, params }: DaoLayoutProps) {
<HeaderMobile />
<StickyPageHeader />
</div>
<div className="flex w-full flex-col items-center overflow-y-scroll lg:h-screen">
<div className="flex w-full flex-col items-center lg:h-screen">
<div className="w-full flex-1">{children}</div>
<Footer />
</div>
Expand Down
38 changes: 8 additions & 30 deletions apps/dashboard/app/[daoId]/(main)/risk-analysis/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ import type { Metadata } from "next";
import { DaoIdEnum } from "@/shared/types/daos";
import daoConfigByDaoId from "@/shared/dao-config";
import { RiskAnalysisSection } from "@/features/risk-analysis";
import { GovernanceImplementationSection } from "@/features/governance-implementation";
import { PAGES_CONSTANTS } from "@/shared/constants/pages-constants";
import { Gauge } from "lucide-react";
import { RiskLevelCard, TheSectionLayout } from "@/shared/components";
import {
SubSection,
SubSectionsContainer,
} from "@/shared/components/design-system/section";
import { DividerDefault } from "@/shared/components/design-system/divider/DividerDefault";
import { Bomb } from "lucide-react";
import { TheSectionLayout } from "@/shared/components";
import { SubSectionsContainer } from "@/shared/components/design-system/section";
import { RiskLevel } from "@/shared/types/enums";
import { getDaoRiskAreas } from "@/shared/utils/risk-analysis";

Expand Down Expand Up @@ -75,7 +70,7 @@ export default async function RiskAnalysisPage({
const daoIdEnum = daoId.toUpperCase() as DaoIdEnum;
const daoConstants = daoConfigByDaoId[daoIdEnum];

if (!daoConstants.riskAnalysis) {
if (!daoConstants.attackExposure) {
return null;
}

Expand All @@ -101,29 +96,12 @@ export default async function RiskAnalysisPage({
return (
<div>
<TheSectionLayout
title={PAGES_CONSTANTS.riskAnalysis.title}
icon={<Gauge className="section-layout-icon" />}
description={PAGES_CONSTANTS.riskAnalysis.description}
riskLevel={<RiskLevelCard status={getHighestRiskLevel()} />}
title={PAGES_CONSTANTS.attackExposure.title}
icon={<Bomb className="section-layout-icon" />}
description={PAGES_CONSTANTS.attackExposure.description}
>
<SubSectionsContainer>
<SubSection
subsectionTitle={PAGES_CONSTANTS.riskAnalysis.subTitle}
subsectionDescription={PAGES_CONSTANTS.riskAnalysis.subDescription}
dateRange=""
>
<RiskAnalysisSection daoId={daoIdEnum} />
</SubSection>
<DividerDefault isHorizontal />
<SubSection
subsectionTitle={PAGES_CONSTANTS.governanceImplementation.subTitle}
subsectionDescription={
PAGES_CONSTANTS.governanceImplementation.subDescription
}
dateRange=""
>
<GovernanceImplementationSection daoId={daoIdEnum} />
</SubSection>
<RiskAnalysisSection daoId={daoIdEnum} />
</SubSectionsContainer>
</TheSectionLayout>
</div>
Expand Down
5 changes: 2 additions & 3 deletions apps/dashboard/features/dao-overview/DaoOverviewSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const DaoOverviewSection = ({ daoId }: { daoId: DaoIdEnum }) => {

const daoRiskAreas = getDaoRiskAreas(daoId);
const riskAreas = {
title: "RISK AREAS",
title: "Attack Exposure",
risks: Object.entries(daoRiskAreas).map(([name, info]) => ({
name,
level: info.riskLevel,
Expand Down Expand Up @@ -132,9 +132,8 @@ export const DaoOverviewSection = ({ daoId }: { daoId: DaoIdEnum }) => {
<div className="w-full">
<VotingPowerChartCard daoId={daoId} />
</div>

</div>
{daoConfig.governancePage && (<LastProposalsCard daoId={daoId} />)}
{daoConfig.governancePage && <LastProposalsCard daoId={daoId} />}
</div>
</Suspense>
);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading