Fixed action button display while responsive and fix translations (#3469)

pull/3444/head^2
alannnc 2022-07-20 18:12:18 +00:00 committed by GitHub
parent be799e35d5
commit b47c75304e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 12 deletions

View File

@ -274,16 +274,14 @@ const PremiumTextfield = (props: ICustomUsernameProps) => {
<div className="flex w-full flex-wrap rounded-sm bg-gray-100 py-3 text-sm"> <div className="flex w-full flex-wrap rounded-sm bg-gray-100 py-3 text-sm">
<div className="flex-1 px-2"> <div className="flex-1 px-2">
<p className="text-gray-500"> <p className="text-gray-500">{t("current_username")}</p>
{t("current")} {t("username")}
</p>
<p className="mt-1" data-testid="current-username"> <p className="mt-1" data-testid="current-username">
{currentUsername} {currentUsername}
</p> </p>
</div> </div>
<div className="ml-6 flex-1"> <div className="ml-6 flex-1">
<p className="text-gray-500" data-testid="new-username"> <p className="text-gray-500" data-testid="new-username">
{t("new")} {t("username")} {t("new_username")}
</p> </p>
<p>{inputUsernameValue}</p> <p>{inputUsernameValue}</p>
</div> </div>

View File

@ -144,7 +144,7 @@ const UsernameTextfield = (props: ICustomUsernameProps) => {
</div> </div>
)} )}
</div> </div>
<div className="xs:hidden"> <div className="hidden md:inline">
<ActionButtons index="desktop" /> <ActionButtons index="desktop" />
</div> </div>
</div> </div>
@ -171,16 +171,14 @@ const UsernameTextfield = (props: ICustomUsernameProps) => {
<div className="flex w-full flex-wrap rounded-sm bg-gray-100 py-3 text-sm"> <div className="flex w-full flex-wrap rounded-sm bg-gray-100 py-3 text-sm">
<div className="flex-1 px-2"> <div className="flex-1 px-2">
<p className="text-gray-500"> <p className="text-gray-500">{t("current_username")}</p>
{t("current")} {t("username").toLocaleLowerCase()}
</p>
<p className="mt-1" data-testid="current-username"> <p className="mt-1" data-testid="current-username">
{currentUsername} {currentUsername}
</p> </p>
</div> </div>
<div className="flex-1"> <div className="flex-1">
<p className="text-gray-500" data-testid="new-username"> <p className="text-gray-500" data-testid="new-username">
{t("new")} {t("username").toLocaleLowerCase()} {t("new_username")}
</p> </p>
<p>{inputUsernameValue}</p> <p>{inputUsernameValue}</p>
</div> </div>

View File

@ -952,7 +952,7 @@
"nr_event_type_one": "{{count}} Event Type", "nr_event_type_one": "{{count}} Event Type",
"nr_event_type_other": "{{count}} Event Types", "nr_event_type_other": "{{count}} Event Types",
"add_action": "Add action", "add_action": "Add action",
"set_whereby_link":"Set Whereby link", "set_whereby_link": "Set Whereby link",
"invalid_whereby_link": "Please enter a valid Whereby Link", "invalid_whereby_link": "Please enter a valid Whereby Link",
"set_around_link": "Set Around.Co link", "set_around_link": "Set Around.Co link",
"invalid_around_link": "Please enter a valid Around Link", "invalid_around_link": "Please enter a valid Around Link",
@ -993,6 +993,7 @@
"open": "Open", "open": "Open",
"close": "Close", "close": "Close",
"pro_feature_teams": "This is a Pro feature. Upgrade to Pro to see your team's availability.", "pro_feature_teams": "This is a Pro feature. Upgrade to Pro to see your team's availability.",
"pro_feature_workflows": "This is a Pro feature. Upgrade to Pro to automate your event notifications and reminders with Workflows." "pro_feature_workflows": "This is a Pro feature. Upgrade to Pro to automate your event notifications and reminders with Workflows.",
"current_username": "Current Username",
"new_username": "New Username"
} }