fix: update top banner (#9580)

* fix: update wrong banner message in english

* fix: update `resend_email` translation in pt-BR

* chore: add `Icon` prop to `TopBanner` component

* fix: remove unnecessary variant scope

* Remove translations so they can be retranslated, complete design

* Changed key of already translated entry

---------

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Esaú MoraisandAlex van Andel authored and GitHub committed 2023-06-17 01:06:04 +00:00
1 parent 4a30f60622
commit af505935bd
6 files changed
+35 -17

No files matched your search

@@ -4,7 +4,8 @@ import { APP_NAME } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc";
import useEmailVerifyCheck from "@calcom/trpc/react/hooks/useEmailVerifyCheck";
import { Button, TopBanner, showToast } from "@calcom/ui";
import { TopBanner, showToast } from "@calcom/ui";
import { Mail } from "@calcom/ui/components/icon";
import { useFlagMap } from "../../flags/context/provider";
@@ -21,16 +22,18 @@ function VerifyEmailBanner() {
return (
<>
<TopBanner
Icon={Mail}
text={t("verify_email_banner_body", { appName: APP_NAME })}
variant="warning"
actions={
<Button
<a
className="underline hover:cursor-pointer"
onClick={() => {
mutation.mutate();
showToast(t("email_sent"), "success");
}}>
{t("send_email")}
</Button>
{t("resend_email")}
</a>
}
/>
</>