mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
♻️ Refactor i18n files (#670)
This commit is contained in:
parent
cd5bf11179
commit
82499ff48d
166 changed files with 4372 additions and 2052 deletions
|
@ -30,7 +30,7 @@ const VoteSummary = ({
|
|||
className?: string;
|
||||
votes: { optionId: string; type: VoteType }[];
|
||||
}) => {
|
||||
const { t } = useTranslation("app");
|
||||
const { t } = useTranslation();
|
||||
const voteByType = votes.reduce<Record<VoteType, string[]>>(
|
||||
(acc, vote) => {
|
||||
acc[vote.type] = [...acc[vote.type], vote.optionId];
|
||||
|
@ -71,7 +71,7 @@ const VoteSummary = ({
|
|||
};
|
||||
|
||||
export const NewParticipantModal = (props: NewParticipantModalProps) => {
|
||||
const { t } = useTranslation("app");
|
||||
const { t } = useTranslation();
|
||||
const { register, formState, setFocus, handleSubmit } =
|
||||
useForm<NewParticipantFormData>();
|
||||
const { requiredString, validEmail } = useFormValidation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue