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 Dec 5, 2023
1 parent 7b39a53 commit 79ebf19
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 29 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() {
let 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
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ class TransactionEditInner extends PureComponent {
: 'Transaction'
: descriptionPretty
}
titleStyle={{
fontSize: 16,
fontWeight: 500,
}}
style={{
flex: 1,
backgroundColor: theme.mobilePageBackground,
Expand Down

0 comments on commit 79ebf19

Please sign in to comment.