Skip to content

Commit c70560d

Browse files
update heading styles for branding, audit-log and app usage log pages
1 parent f977ce8 commit c70560d

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

client/packages/lowcoder/src/pages/setting/appUsage/dashboard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import DeviceOSBreakdownChart from "./charts/deviceOSBreakdown";
2424
import BrowserEngineBreakdownChart from "./charts/browserEngineBreakdown";
2525
import UserEngagementByRegionChart from "./charts/userEngagementByRegion";
2626
import { geoLocation } from "../audit/auditContants";
27+
import { Level1SettingPageTitle } from "../styled";
2728

2829
const { RangePicker } = DatePicker;
2930

@@ -361,10 +362,9 @@ export function AppUsageDashboard() {
361362
return (
362363
<DetailContainer>
363364
<Header>
364-
<HeaderBack>
365-
{/* <span>{trans("enterprise.AuditLogTitle")}</span> */}
365+
<Level1SettingPageTitle style={{marginBottom: 0}}>
366366
<span>{"App Usage Logs"}</span>
367-
</HeaderBack>
367+
</Level1SettingPageTitle>
368368
</Header>
369369

370370
<DetailContent>

client/packages/lowcoder/src/pages/setting/audit/dashboard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { SETTING_URL } from "@lowcoder-ee/constants/routesURL";
2121
import { EyeOutlined } from "@ant-design/icons";
2222
import { AuditLog, AuditLogStat, eventTypes } from "./auditContants";
2323
import Statistics from "./components/statistics";
24+
import { Level1SettingPageTitle } from "../styled";
2425

2526
const { RangePicker } = DatePicker;
2627

@@ -398,9 +399,9 @@ export function AuditLogDashboard() {
398399
return (
399400
<DetailContainer>
400401
<Header>
401-
<HeaderBack>
402+
<Level1SettingPageTitle style={{marginBottom: 0}}>
402403
<span>{trans("enterprise.AuditLogTitle")}</span>
403-
</HeaderBack>
404+
</Level1SettingPageTitle>
404405
</Header>
405406

406407
<DetailContent>

client/packages/lowcoder/src/pages/setting/audit/detail.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import { getAuditLogs, getEnvironmentsByIds, getMeta } from "@lowcoder-ee/api/en
1414
import { isEmpty } from "lodash";
1515
import { getEventColor, getEventLabel } from "./dashboard";
1616
import Tag from "antd/es/tag";
17+
import { ArrowIcon } from "lowcoder-design";
18+
import history from "util/history";
19+
import { AUDIT_LOG_DASHBOARD } from "@lowcoder-ee/constants/routesURL";
1720

1821
const StyleThemeSettingsCover = styled.div`
1922
display: flex;
@@ -249,6 +252,10 @@ export function AuditLogDetail() {
249252
<DetailContainer>
250253
<Header>
251254
<HeaderBack>
255+
<span onClick={() => history.push(AUDIT_LOG_DASHBOARD)}>
256+
{trans("enterprise.AuditLogTitle")}
257+
</span>
258+
<ArrowIcon />
252259
<span>{"Audit Log Detail"}</span>
253260
</HeaderBack>
254261
</Header>
@@ -263,6 +270,10 @@ export function AuditLogDetail() {
263270
<DetailContainer>
264271
<Header>
265272
<HeaderBack>
273+
<span onClick={() => history.push(AUDIT_LOG_DASHBOARD)}>
274+
{trans("enterprise.AuditLogTitle")}
275+
</span>
276+
<ArrowIcon />
266277
<span>{"Audit Log Detail"}</span>
267278
</HeaderBack>
268279
</Header>

client/packages/lowcoder/src/pages/setting/branding/BrandingSetting.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { BrandingConfig, BrandingSettings, createBranding, getBranding } from "@
2323
import Flex from "antd/es/flex";
2424
import Button from "antd/es/button";
2525
import { fetchBrandingSetting } from "@lowcoder-ee/redux/reduxActions/enterpriseActions";
26+
import { Level1SettingPageTitle } from "../styled";
2627

2728
const { TextArea } = Input;
2829

@@ -297,9 +298,9 @@ export function BrandingSetting() {
297298
return (
298299
<DetailContainer>
299300
<Header>
300-
<HeaderBack>
301+
<Level1SettingPageTitle style={{marginBottom: 0}}>
301302
<span>{trans("branding.title")}</span>
302-
</HeaderBack>
303+
</Level1SettingPageTitle>
303304
</Header>
304305
<DetailContent>
305306

0 commit comments

Comments
 (0)