Skip to content

Commit

Permalink
[Debt] Removes deprecated AdminHero component (#12413)
Browse files Browse the repository at this point in the history
* Replace deprecated AdminHero with Hero

* Remove AdminHero story

* Remove AdminHero component

* Remove AdminSubNav component
  • Loading branch information
mnigh authored Jan 3, 2025
1 parent ea36d58 commit 64f027e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 174 deletions.
64 changes: 0 additions & 64 deletions apps/web/src/components/HeroDeprecated/AdminHero.stories.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions apps/web/src/components/HeroDeprecated/AdminHero.tsx

This file was deleted.

35 changes: 0 additions & 35 deletions apps/web/src/components/HeroDeprecated/AdminSubNav.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import SEO from "~/components/SEO/SEO";
import { getFullNameHtml } from "~/utils/nameUtils";
import useRoutes from "~/hooks/useRoutes";
import AdminContentWrapper from "~/components/AdminContentWrapper/AdminContentWrapper";
import AdminHero from "~/components/HeroDeprecated/AdminHero";
import Hero from "~/components/Hero";
import RequireAuth from "~/components/RequireAuth/RequireAuth";
import adminMessages from "~/messages/adminMessages";
import permissionConstants from "~/constants/permissionConstants";
Expand Down Expand Up @@ -218,7 +218,7 @@ export const DashboardPage = ({ currentUser }: DashboardPageProps) => {
title={intl.formatMessage(pageTitles.dashboard)}
description={intl.formatMessage(subTitle)}
/>
<AdminHero
<Hero
title={intl.formatMessage(
{
defaultMessage:
Expand Down

0 comments on commit 64f027e

Please sign in to comment.