Skip to content

Commit

Permalink
Remove Page titleStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 12, 2024
1 parent 27efd24 commit 795187c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
14 changes: 1 addition & 13 deletions packages/desktop-client/src/components/ManageRulesPage.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import React from 'react';

import { useResponsive } from '../ResponsiveProvider';
import { theme } from '../style';

import { ManageRules } from './ManageRules';
import { Page } from './Page';

export function ManageRulesPage() {
const { isNarrowWidth } = useResponsive();
return (
<Page
title="Rules"
titleStyle={{
...(isNarrowWidth && {
backgroundColor: theme.mobileHeaderBackground,
color: theme.mobileHeaderText,
}),
}}
>
<Page title="Rules">
<ManageRules isModal={false} payeeId={null} />
</Page>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
import React from 'react';
import { useLocation } from 'react-router-dom';

import { useResponsive } from '../../ResponsiveProvider';
import { theme } from '../../style';
import { Page } from '../Page';

import { ManagePayeesWithData } from './ManagePayeesWithData';

export function ManagePayeesPage() {
const location = useLocation();
const { isNarrowWidth } = useResponsive();
return (
<Page
title="Payees"
titleStyle={{
...(isNarrowWidth && {
backgroundColor: theme.mobileHeaderBackground,
color: theme.mobileHeaderText,
}),
}}
>
<Page title="Payees">
<ManagePayeesWithData
initialSelectedIds={
location.state && location.state.selectedPayee
Expand Down

0 comments on commit 795187c

Please sign in to comment.