Skip to content

Commit

Permalink
fix: format code properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Apr 19, 2024
1 parent d90c8cf commit 9a15f8c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ jobs:
# uncomment following line for monorepo apps:
#cwd: ./packages/app
build-dir: build/app
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
31 changes: 29 additions & 2 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: 2024-04-08T17:04:59.684Z\n"
"PO-Revision-Date: 2024-04-08T17:04:59.684Z\n"
"POT-Creation-Date: 2024-04-19T08:40:55.716Z\n"
"PO-Revision-Date: 2024-04-19T08:40:55.716Z\n"

msgid "Home"
msgstr "Home"
Expand All @@ -17,6 +17,30 @@ msgstr "Attributes"
msgid "Form"
msgstr "Form"

msgid "Add an attribute"
msgstr "Add an attribute"

msgid "Attribute name"
msgstr "Attribute name"

msgid "Value Type"
msgstr "Value Type"

msgid "Text"
msgstr "Text"

msgid "Number"
msgstr "Number"

msgid "Save"
msgstr "Save"

msgid "Attributes ssss"
msgstr "Attributes ssss"

msgid "Attributes visible to {{name}} ({{email}})"
msgstr "Attributes visible to {{name}} ({{email}})"

msgid "Name"
msgstr "Name"

Expand Down Expand Up @@ -67,3 +91,6 @@ msgstr "Submit form"

msgid "DHIS2 Web App Academy 2024"
msgstr "DHIS2 Web App Academy 2024"

msgid "Running on API version {{version}}"
msgstr "Running on API version {{version}}"
5 changes: 1 addition & 4 deletions src/views/AttributeCreateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ const AttributeCreateForm = () => {
}),
onError: (error) => show({ error }),
}
const [mutate, { called, loading, error, data, refetch }] = useDataMutation(
mutation,
options
)
const [mutate] = useDataMutation(mutation, options)

const onSubmit = async (values) => {
await mutate(values)
Expand Down

0 comments on commit 9a15f8c

Please sign in to comment.