feat: i18n for add passkey form

This commit is contained in:
httpjamesm 2023-12-24 17:03:27 -05:00
parent 05352f08fc
commit 66234bd18a
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -628,5 +628,6 @@
"DELETE_PASSKEY": "Delete passkey",
"DELETE_PASSKEY_CONFIRMATION": "Are you sure you want to delete this passkey? This action is irreversible.",
"RENAME_PASSKEY": "Rename passkey",
"ADD_PASSKEY": "Add passkey",
"ENTER_PASSKEY_NAME": "Enter passkey name"
}

View file

@ -11,6 +11,7 @@ import { Dispatch, SetStateAction, createContext, useState } from 'react';
import { Passkey } from 'types/passkey';
import PasskeysList from './PasskeysList';
import ManagePasskeyDrawer from './ManagePasskeyDrawer';
import { t } from 'i18next';
export const PasskeysContext = createContext(
{} as {
@ -57,13 +58,11 @@ const Passkeys = () => {
return logError(e, 'Error creating credential');
}
const finishResponse = await finishPasskeyRegistration(
await finishPasskeyRegistration(
inputValue,
newCredential,
response.sessionID
);
console.log(finishResponse);
};
return (
@ -78,8 +77,8 @@ const Passkeys = () => {
<Box>
<SingleInputForm
fieldType="text"
placeholder="Passkey Name"
buttonText="Add Passkey"
placeholder={t('ENTER_PASSKEY_NAME')}
buttonText={t('ADD_PASSKEY')}
initialValue={''}
blockButton
callback={handleSubmit}