[WEB-5248] chore: translations and empty state refactor (#8021)
* chore: translations code refactoring * chore: empty state translation refactor * chore: code refactor
This commit is contained in:
parent
cf7f891bcb
commit
b7aa25f2c6
46 changed files with 131 additions and 127 deletions
|
|
@ -98,11 +98,11 @@ const ProjectCyclesPage = observer(() => {
|
|||
<div className="h-full place-items-center">
|
||||
<EmptyStateDetailed
|
||||
assetKey="cycle"
|
||||
title={t("project.cycles.title")}
|
||||
description={t("project.cycles.description")}
|
||||
title={t("project_empty_state.cycles.title")}
|
||||
description={t("project_empty_state.cycles.description")}
|
||||
actions={[
|
||||
{
|
||||
label: t("project.cycles.cta_primary"),
|
||||
label: t("project_empty_state.cycles.cta_primary"),
|
||||
onClick: () => setCreateModal(true),
|
||||
variant: "primary",
|
||||
disabled: !hasMemberLevelPermission,
|
||||
|
|
|
|||
|
|
@ -90,11 +90,11 @@ const WebhooksListPage = observer(() => {
|
|||
<div className="h-full w-full flex items-center justify-center">
|
||||
<EmptyStateCompact
|
||||
assetKey="webhook"
|
||||
title={t("settings.webhooks.title")}
|
||||
description={t("settings.webhooks.description")}
|
||||
title={t("settings_empty_state.webhooks.title")}
|
||||
description={t("settings_empty_state.webhooks.description")}
|
||||
actions={[
|
||||
{
|
||||
label: t("settings.webhooks.cta_primary"),
|
||||
label: t("settings_empty_state.webhooks.cta_primary"),
|
||||
onClick: () => {
|
||||
captureClick({
|
||||
elementName: WORKSPACE_SETTINGS_TRACKER_ELEMENTS.EMPTY_STATE_ADD_WEBHOOK_BUTTON,
|
||||
|
|
|
|||
|
|
@ -85,11 +85,11 @@ const ApiTokensPage = observer(() => {
|
|||
<EmptyStateCompact
|
||||
assetKey="token"
|
||||
assetClassName="size-20"
|
||||
title={t("settings.tokens.title")}
|
||||
description={t("settings.tokens.description")}
|
||||
title={t("settings_empty_state.tokens.title")}
|
||||
description={t("settings_empty_state.tokens.description")}
|
||||
actions={[
|
||||
{
|
||||
label: t("settings.tokens.cta_primary"),
|
||||
label: t("settings_empty_state.tokens.cta_primary"),
|
||||
onClick: () => {
|
||||
captureClick({
|
||||
elementName: PROFILE_SETTINGS_TRACKER_ELEMENTS.EMPTY_STATE_ADD_PAT_BUTTON,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue