Skip to content

Commit

Permalink
fix: flow
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Jul 25, 2023
1 parent cc9de1b commit ce6cf2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
19 changes: 2 additions & 17 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2023-07-25T09:21:55.558Z\n"
"PO-Revision-Date: 2023-07-25T09:21:55.558Z\n"
"POT-Creation-Date: 2023-07-25T09:23:57.018Z\n"
"PO-Revision-Date: 2023-07-25T09:23:57.018Z\n"

msgid "Choose one or more dates..."
msgstr "Choose one or more dates..."
Expand Down Expand Up @@ -998,11 +998,6 @@ msgstr "You can also choose a program from the top bar and search in that progra
msgid "Choose a type to start searching"
msgstr "Choose a type to start searching"

msgid "Fill in at least {{count}} attribute to search"
msgid_plural "Fill in at least {{count}} attribute to search"
msgstr[0] "Fill in at least {{count}} attribute to search"
msgstr[1] "Fill in at least {{count}} attributes to search"

msgid "Search {{name}}"
msgstr "Search {{name}}"

Expand Down Expand Up @@ -1256,22 +1251,12 @@ msgstr "Scheduled automatically for {{suggestedScheduleDate}}"
msgid "The scheduled date matches the suggested date, but can be changed if needed."
msgstr "The scheduled date matches the suggested date, but can be changed if needed."

msgid "The scheduled date is {{count}} days {{position}} the suggested date."
msgid_plural "The scheduled date is {{count}} days {{position}} the suggested date."
msgstr[0] "The scheduled date is {{count}} day {{position}} the suggested date."
msgstr[1] "The scheduled date is {{count}} days {{position}} the suggested date."

msgid "after"
msgstr "after"

msgid "before"
msgstr "before"

msgid "There are {{count}} scheduled event in {{orgUnitName}} on this day."
msgid_plural "There are {{count}} scheduled event in {{orgUnitName}} on this day."
msgstr[0] "There are {{count}} scheduled event in {{orgUnitName}} on this day."
msgstr[1] "There are {{count}} scheduled events in {{orgUnitName}} on this day."

msgid "Scheduling an event in {{stageName}} for {{programName}} in {{orgUnitName}}"
msgstr "Scheduling an event in {{stageName}} for {{programName}} in {{orgUnitName}}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export const useEnrollmentFormFoundation = ({
locale,
}: Props) => {
const { data: enrollment, isLoading, error } = useIndexedDBQuery(
['enrollmentForm', program?.id],
// $FlowFixMe
['enrollmentForm', program.id],
() => buildEnrollmentForm({
// $FlowFixMe - Flow does not understand that the values are not null here
cachedProgram: program,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const useTrackedEntityTypeCollection = ({
locale,
}: Props): ReturnValues => {
const { data: trackedEntityAttributes } = useIndexedDBQuery(
['trackedEntityAttributes', trackedEntityType?.id],
// $FlowFixMe
['trackedEntityAttributes', trackedEntityType.id],
() => getTrackedEntityAttributes(
trackedEntityType
?.trackedEntityTypeAttributes
Expand All @@ -40,7 +41,8 @@ export const useTrackedEntityTypeCollection = ({
);

const { data: trackedEntityTypeCollection } = useIndexedDBQuery(
['trackedEntityTypeCollection', trackedEntityType?.id],
// $FlowFixMe
['trackedEntityTypeCollection', trackedEntityType.id],
() => buildTrackedEntityTypeCollection({
// $FlowFixMe
cachedTrackedEntityType: trackedEntityType,
Expand Down

0 comments on commit ce6cf2f

Please sign in to comment.