diff --git a/i18n/en.pot b/i18n/en.pot index 2dc9dcc..bc65235 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,27 +5,39 @@ 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-12-18T09:41:03.249Z\n" -"PO-Revision-Date: 2024-12-18T09:41:03.250Z\n" +"POT-Creation-Date: 2024-12-19T16:36:13.574Z\n" +"PO-Revision-Date: 2024-12-19T16:36:13.575Z\n" msgid "An error has occurred" msgstr "An error has occurred" +msgid "404 Page Not Found" +msgstr "404 Page Not Found" + msgid "Back to datastore" msgstr "Back to datastore" -msgid "Back to all namespaces" -msgstr "Back to all namespaces" +msgid "An error has occurred. Try again" +msgstr "An error has occurred. Try again" -msgid "Search namespaces" -msgstr "Search namespaces" +msgid "Cancel" +msgstr "Cancel" -msgid "New Namespace" -msgstr "New Namespace" +msgid "Add" +msgstr "Add" + +msgid "Key" +msgstr "Key" msgid "Namespace" msgstr "Namespace" +msgid "Back to all namespaces" +msgstr "Back to all namespaces" + +msgid "Configure Namespaces" +msgstr "Configure Namespaces" + msgid "Close" msgstr "Close" @@ -38,8 +50,14 @@ msgstr "Save changes" msgid "Choose a key to start editing" msgstr "Choose a key to start editing" -msgid "Keys" -msgstr "Keys" +msgid "DataStore" +msgstr "DataStore" + +msgid "UserDataStore" +msgstr "UserDataStore" + +msgid "keys" +msgstr "keys" msgid "New Key" msgstr "New Key" @@ -47,14 +65,17 @@ msgstr "New Key" msgid "Search keys" msgstr "Search keys" -msgid "Key" -msgstr "Key" +msgid "Add New Key" +msgstr "Add New Key" -msgid "DataStore" -msgstr "DataStore" +msgid "Search namespaces" +msgstr "Search namespaces" -msgid "UserDataStore" -msgstr "UserDataStore" +msgid "New Namespace" +msgstr "New Namespace" + +msgid "Add New Namespace" +msgstr "Add New Namespace" msgid "Search" msgstr "Search" diff --git a/src/components/modals/CreateModal.tsx b/src/components/modals/CreateModal.tsx index eed466c..b0ddb2e 100644 --- a/src/components/modals/CreateModal.tsx +++ b/src/components/modals/CreateModal.tsx @@ -19,7 +19,7 @@ interface FieldValues { interface CreateModalProps { closeModal: () => void - handleCreate: (FieldValues) => void + handleCreate: ({ key, namespace }: FieldValues) => void children: React.ReactNode title: string } @@ -35,7 +35,7 @@ const CreateModal = ({ } return ( - +
{({ handleSubmit }) => ( diff --git a/src/components/pages/Namespaces.tsx b/src/components/pages/Namespaces.tsx index a7494bb..c1ec27d 100644 --- a/src/components/pages/Namespaces.tsx +++ b/src/components/pages/Namespaces.tsx @@ -18,11 +18,6 @@ const dataStoreNamespacesQuery = { }, } -export type FieldValues = { - namespace?: string - key?: string -} - const NamespacesPage = () => { const navigate = useNavigate() const { store } = useParams()