Skip to content

Commit

Permalink
eat(DatePicker/Filters): handle breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ncomont committed Oct 12, 2023
1 parent 137f5c9 commit 5755c8f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions clients/banking/src/components/TransactionListFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { LakeButton } from "@swan-io/lake/src/components/LakeButton";
import { LakeSearchField } from "@swan-io/lake/src/components/LakeSearchField";
import { Space } from "@swan-io/lake/src/components/Space";
import { isNotNullish } from "@swan-io/lake/src/utils/nullish";
import { monthNames, weekDayNames } from "@swan-io/shared-business/src/utils/date";
import { ReactNode, useEffect, useMemo, useState } from "react";
import { TransactionStatus } from "../graphql/partner";
import { locale, t } from "../utils/i18n";
Expand All @@ -30,8 +29,6 @@ const isAfterUpdatedAtFilter: FilterDateDef = {
submitText: t("common.filters.apply"),
noValueText: t("common.none"),
dateFormat: locale.dateFormat,
dayNames: weekDayNames,
monthNames,
validate: validateAfterUpdatedAt,
isSelectable: isAfterUpdatedAtSelectable,
};
Expand All @@ -42,8 +39,6 @@ const isBeforeUpdatedAtFilter: FilterDateDef = {
cancelText: t("common.cancel"),
submitText: t("common.filters.apply"),
noValueText: t("common.none"),
dayNames: weekDayNames,
monthNames,
dateFormat: locale.dateFormat,
validate: validateBeforeUpdatedAt,
isSelectable: isBeforeUpdatedAtSelectable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Tile } from "@swan-io/lake/src/components/Tile";
import { commonStyles } from "@swan-io/lake/src/constants/commonStyles";
import { colors } from "@swan-io/lake/src/constants/design";
import { DatePicker, isDateInRange } from "@swan-io/shared-business/src/components/DatePicker";
import { monthNames, weekDayNames } from "@swan-io/shared-business/src/utils/date";
import dayjs from "dayjs";
import { StyleSheet, View } from "react-native";
import { hasDefinedKeys, useForm } from "react-ux-form";
Expand Down Expand Up @@ -173,8 +172,6 @@ export const TransferRecurringWizardSchedule = ({ onPressPrevious, onSave, loadi
error={error}
format={locale.dateFormat}
firstWeekDay={locale.firstWeekday}
monthNames={monthNames}
weekDayNames={weekDayNames}
onChange={onChange}
isSelectable={isDateInRange(
dayjs.utc().toDate(),
Expand Down Expand Up @@ -252,8 +249,6 @@ export const TransferRecurringWizardSchedule = ({ onPressPrevious, onSave, loadi
error={error}
format={locale.dateFormat}
firstWeekDay={locale.firstWeekday}
monthNames={monthNames}
weekDayNames={weekDayNames}
onChange={onChange}
isSelectable={date => {
const datePickerDate = dayjs(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { commonStyles } from "@swan-io/lake/src/constants/commonStyles";
import { animations, colors } from "@swan-io/lake/src/constants/design";
import { useUrqlQuery } from "@swan-io/lake/src/hooks/useUrqlQuery";
import { DatePicker, isDateInRange } from "@swan-io/shared-business/src/components/DatePicker";
import { monthNames, weekDayNames } from "@swan-io/shared-business/src/utils/date";
import dayjs from "dayjs";
import { electronicFormat } from "iban";
import { ActivityIndicator, StyleSheet, View } from "react-native";
Expand Down Expand Up @@ -200,8 +199,6 @@ export const TransferRegularWizardSchedule = ({
error={error}
format={locale.dateFormat}
firstWeekDay={locale.firstWeekday}
monthNames={monthNames}
weekDayNames={weekDayNames}
onChange={onChange}
isSelectable={isDateInRange(
dayjs.utc().toDate(),
Expand Down

0 comments on commit 5755c8f

Please sign in to comment.