Skip to content

Commit

Permalink
Schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 6, 2024
1 parent 23b9f7d commit 10ff1ba
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ module.exports = {
'./packages/desktop-client/src/components/reports/**/*',
// './packages/desktop-client/src/components/responsive/**/*',
// './packages/desktop-client/src/components/rules/**/*',
// './packages/desktop-client/src/components/schedules/**/*',
'./packages/desktop-client/src/components/schedules/**/*',
// './packages/desktop-client/src/components/select/**/*',
// './packages/desktop-client/src/components/settings/**/*',
// './packages/desktop-client/src/components/sidebar/**/*',
Expand Down
4 changes: 2 additions & 2 deletions packages/desktop-client/src/components/Modals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import { SelectLinkedAccounts } from './modals/SelectLinkedAccounts';
import { SingleInput } from './modals/SingleInput';
import { SwitchBudgetType } from './modals/SwitchBudgetType';
import { DiscoverSchedules } from './schedules/DiscoverSchedules';
import { ScheduleDetails } from './schedules/EditSchedule';
import { ScheduleLink } from './schedules/LinkSchedule';
import { PostsOfflineNotification } from './schedules/PostsOfflineNotification';
import { ScheduleDetails } from './schedules/ScheduleDetails';
import { ScheduleLink } from './schedules/ScheduleLink';

export function Modals() {
const modalStack = useSelector(state => state.modals.modalStack);
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/responsive/wide.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { Budget } from '../budget';

export { default as Schedules } from '../schedules';
export { Schedules } from '../schedules';

export { GoCardlessLink } from '../gocardless/GoCardlessLink';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function DiscoverSchedulesTable({
);
}

export default function DiscoverSchedules({
export function DiscoverSchedules({
modalProps,
actions,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Stack } from '../common/Stack';
import { Text } from '../common/Text';
import DisplayId from '../util/DisplayId';

export default function PostsOfflineNotification({ modalProps, actions }) {
export function PostsOfflineNotification({ modalProps, actions }) {
const location = useLocation();

const payees = (location.state && location.state.payees) || [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function updateScheduleConditions(schedule, fields) {
};
}

export default function ScheduleDetails({ modalProps, actions, id }) {
export function ScheduleDetails({ modalProps, actions, id }) {
const adding = id == null;
const payees = useCachedPayees({ idKey: true });
const globalDispatch = useDispatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { View } from '../common/View';

import { ROW_HEIGHT, SchedulesTable } from './SchedulesTable';

export default function ScheduleLink({
export function ScheduleLink({
modalProps,
actions,
transactionIds: ids,
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/schedules/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Page } from '../Page';

import { SchedulesTable, type ScheduleItemAction } from './SchedulesTable';

export default function Schedules() {
export function Schedules() {
const { pushModal } = useActions();
const [filter, setFilter] = useState('');

Expand Down

0 comments on commit 10ff1ba

Please sign in to comment.