mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-30 01:06:22 +02:00
♻️ Refactor i18n files (#670)
This commit is contained in:
parent
cd5bf11179
commit
82499ff48d
166 changed files with 4372 additions and 2052 deletions
|
@ -10,7 +10,7 @@ import { useModalState } from "@/components/modal/use-modal";
|
|||
import Tooltip from "@/components/tooltip";
|
||||
|
||||
const FeedbackForm = (props: { onClose: () => void }) => {
|
||||
const { t } = useTranslation("app");
|
||||
const { t } = useTranslation();
|
||||
const sendFeedback = trpc.feedback.send.useMutation();
|
||||
const { handleSubmit, register, formState } = useForm<{ content: string }>();
|
||||
|
||||
|
@ -82,7 +82,7 @@ const FeedbackForm = (props: { onClose: () => void }) => {
|
|||
};
|
||||
|
||||
const FeedbackButton = () => {
|
||||
const { t } = useTranslation("app");
|
||||
const { t } = useTranslation();
|
||||
const [isVisible, show, close] = useModalState();
|
||||
if (isVisible) {
|
||||
return <FeedbackForm onClose={close} />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue