UX: Apply the admin page header component (#28767)

* DEV: Apply the admin page header component

* DEV: remove unused i18n import
This commit is contained in:
Ella E. 2024-09-05 22:46:41 -06:00 committed by GitHub
parent 4a8d6f83bd
commit cde4db1c6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 3 deletions

View File

@ -1,7 +1,6 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import i18n from "discourse-common/helpers/i18n";
import AdminConfigAreaCard from "admin/components/admin-config-area-card";
import AdminConfigAreasAboutContactInformation from "admin/components/admin-config-area-cards/about/contact-information";
import AdminConfigAreasAboutGeneralSettings from "admin/components/admin-config-area-cards/about/general-settings";
@ -50,7 +49,6 @@ export default class AdminConfigAreasAbout extends Component {
<template>
<div class="admin-config-area">
<h2>{{i18n "admin.config_areas.about.header"}}</h2>
<div class="admin-config-area__primary-content">
<AdminConfigAreaCard
@heading="admin.config_areas.about.general_settings"

View File

@ -1 +1,15 @@
<AdminConfigAreas::About @data={{this.model.site_settings}} />
<AdminPageHeader
@titleLabel="admin.config_areas.about.header"
@hideTabs={{true}}
>
<:breadcrumbs>
<DBreadcrumbsItem
@path="/admin/config/about"
@label={{i18n "admin.config_areas.about.header"}}
/>
</:breadcrumbs>
</AdminPageHeader>
<div class="admin-container admin-config-page__main-area">
<AdminConfigAreas::About @data={{this.model.site_settings}} />
</div>