Revert "Unify workspace dropdowns; Update layouts (#458)"

This reverts commit 4bc8448a1d.
This commit is contained in:
gbuomprisco
2026-03-11 14:47:47 +08:00
parent 4bc8448a1d
commit 4912e402a3
530 changed files with 11182 additions and 14382 deletions

View File

@@ -29,11 +29,11 @@ export async function renderAccountDeleteEmail(props: Props) {
namespace,
});
const previewText = t(`previewText`, {
const previewText = t(`${namespace}:previewText`, {
productName: props.productName,
});
const subject = t(`subject`, {
const subject = t(`${namespace}:subject`, {
productName: props.productName,
});
@@ -54,27 +54,27 @@ export async function renderAccountDeleteEmail(props: Props) {
<EmailContent>
<Text className="text-[16px] leading-[24px] text-[#242424]">
{t(`hello`)}
{t(`${namespace}:hello`)}
</Text>
<Text className="text-[16px] leading-[24px] text-[#242424]">
{t(`paragraph1`, {
{t(`${namespace}:paragraph1`, {
productName: props.productName,
})}
</Text>
<Text className="text-[16px] leading-[24px] text-[#242424]">
{t(`paragraph2`)}
{t(`${namespace}:paragraph2`)}
</Text>
<Text className="text-[16px] leading-[24px] text-[#242424]">
{t(`paragraph3`, {
{t(`${namespace}:paragraph3`, {
productName: props.productName,
})}
</Text>
<Text className="text-[16px] leading-[24px] text-[#242424]">
{t(`paragraph4`, {
{t(`${namespace}:paragraph4`, {
productName: props.productName,
})}
</Text>

View File

@@ -42,24 +42,24 @@ export async function renderInviteEmail(props: Props) {
});
const previewText = `Join ${props.invitedUserEmail} on ${props.productName}`;
const subject = t(`subject`);
const subject = t(`${namespace}:subject`);
const heading = t(`heading`, {
const heading = t(`${namespace}:heading`, {
teamName: props.teamName,
productName: props.productName,
});
const hello = t(`hello`, {
const hello = t(`${namespace}:hello`, {
invitedUserEmail: props.invitedUserEmail,
});
const mainText = t(`mainText`, {
const mainText = t(`${namespace}:mainText`, {
inviter: props.inviter,
teamName: props.teamName,
productName: props.productName,
});
const joinTeam = t(`joinTeam`, {
const joinTeam = t(`${namespace}:joinTeam`, {
teamName: props.teamName,
});
@@ -108,7 +108,7 @@ export async function renderInviteEmail(props: Props) {
</Section>
<Text className="text-[16px] leading-[24px] text-[#242424]">
{t(`copyPasteLink`)}{' '}
{t(`${namespace}:copyPasteLink`)}{' '}
<Link href={props.link} className="text-blue-600 no-underline">
{props.link}
</Link>
@@ -117,7 +117,7 @@ export async function renderInviteEmail(props: Props) {
<Hr className="mx-0 my-[26px] w-full border border-solid border-[#eaeaea]" />
<Text className="text-[12px] leading-[24px] text-[#666666]">
{t(`invitationIntendedFor`, {
{t(`${namespace}:invitationIntendedFor`, {
invitedUserEmail: props.invitedUserEmail,
})}
</Text>

View File

@@ -32,22 +32,22 @@ export async function renderOtpEmail(props: Props) {
namespace,
});
const subject = t(`subject`, {
const subject = t(`${namespace}:subject`, {
productName: props.productName,
});
const previewText = subject;
const heading = t(`heading`, {
const heading = t(`${namespace}:heading`, {
productName: props.productName,
});
const otpText = t(`otpText`, {
const otpText = t(`${namespace}:otpText`, {
otp: props.otp,
});
const mainText = t(`mainText`);
const footerText = t(`footerText`);
const mainText = t(`${namespace}:mainText`);
const footerText = t(`${namespace}:footerText`);
const html = await render(
<Html>