diff --git a/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.module.scss b/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.module.scss index d576b71b1c22..a8748c3dab9b 100644 --- a/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.module.scss +++ b/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.module.scss @@ -17,6 +17,10 @@ z-index: 2; background-color: $colors--background; + &__white-background { + background-color: $colors--white + } + &__list { display: flex; justify-content: flex-start; diff --git a/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.tsx b/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.tsx index e4f9fb8c3129..462dc2ce799b 100644 --- a/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/pageConfig/pageConfig.tsx @@ -15,6 +15,7 @@ import styles from "./pageConfig.module.scss"; export interface PageConfigProps { layout?: "list" | "spread"; children?: React.ReactNode; + pageHasWhiteBackground?: boolean; } const cx = classnames.bind(styles); @@ -26,7 +27,7 @@ export function PageConfig(props: PageConfigProps): React.ReactElement { }); return ( -
+
); diff --git a/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx b/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx index 92f6e6c3b1d2..ec71106af038 100644 --- a/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/statementsPage/statementsPage.tsx @@ -133,6 +133,7 @@ export interface StatementsPageStateProps { search: string; isTenant?: UIConfigState["isTenant"]; hasViewActivityRedactedRole?: UIConfigState["hasViewActivityRedactedRole"]; + pageHasWhiteBackground?: UIConfigState["pageHasWhiteBackground"]; } export interface StatementsPageState { @@ -624,6 +625,7 @@ export class StatementsPage extends React.Component< databases, search, isTenant, + pageHasWhiteBackground, nodeRegions, } = this.props; @@ -649,7 +651,7 @@ export class StatementsPage extends React.Component< return (
- + uiConfig.userSQLRoles.includes("VIEWACTIVITYREDACTED"), ); +export const selectPageHasWhiteBackground = createSelector( + selectUIConfig, + uiConfig => uiConfig.pageHasWhiteBackground, +); + export const { actions, reducer } = uiConfigSlice; diff --git a/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.tsx b/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.tsx index 9459f00de3ce..ecc080fd561a 100644 --- a/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/transactionsPage/transactionsPage.tsx @@ -88,6 +88,7 @@ export interface TransactionsPageStateProps { error?: Error | null; filters: Filters; isTenant?: UIConfigState["isTenant"]; + pageHasWhiteBackground?: UIConfigState["pageHasWhiteBackground"]; nodeRegions: { [nodeId: string]: string }; pageSize?: number; search: string; @@ -350,6 +351,7 @@ export class TransactionsPage extends React.Component< columns: userSelectedColumnsToShow, sortSetting, search, + pageHasWhiteBackground, } = this.props; const internal_app_name_prefix = data?.internal_app_name_prefix || ""; const statements = data?.statements || []; @@ -397,7 +399,7 @@ export class TransactionsPage extends React.Component< return ( <> - +