Skip to content

Commit

Permalink
chore: type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rita committed Dec 19, 2024
1 parent 4577d52 commit 1ae85df
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 23 deletions.
53 changes: 37 additions & 16 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -38,23 +50,32 @@ 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"

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"
Expand Down
4 changes: 2 additions & 2 deletions src/components/modals/CreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface FieldValues {

interface CreateModalProps {
closeModal: () => void
handleCreate: (FieldValues) => void
handleCreate: ({ key, namespace }: FieldValues) => void
children: React.ReactNode
title: string
}
Expand All @@ -35,7 +35,7 @@ const CreateModal = ({
}

return (
<Modal>
<Modal position="middle">
<Form onSubmit={onSubmit}>
{({ handleSubmit }) => (
<form onSubmit={handleSubmit}>
Expand Down
5 changes: 0 additions & 5 deletions src/components/pages/Namespaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ const dataStoreNamespacesQuery = {
},
}

export type FieldValues = {
namespace?: string
key?: string
}

const NamespacesPage = () => {
const navigate = useNavigate()
const { store } = useParams()
Expand Down

0 comments on commit 1ae85df

Please sign in to comment.