move button strings to correct location, flex-end
This commit is contained in:
1 parent
7c953978ed
commit
d7d237d37b
2 files changed
+7
-8
No files matched your search
@@ -20,6 +20,7 @@ import { useEffect, useState } from "react";
|
|||||||
import { DialogInput } from "@/Components/inputs/Dialog";
|
import { DialogInput } from "@/Components/inputs/Dialog";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import type { RootState } from "@/Types/state";
|
import type { RootState } from "@/Types/state";
|
||||||
|
import { LAYOUT, SPACING } from "@/Utils/Theme/constants";
|
||||||
|
|
||||||
interface RoleOption {
|
interface RoleOption {
|
||||||
id: UserRole;
|
id: UserRole;
|
||||||
@@ -189,8 +190,9 @@ const EditUserPage = () => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<Stack
|
<Stack
|
||||||
|
gap={LAYOUT.XS}
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent={canDeleteUser ? "space-between" : "flex-end"}
|
justifyContent={"flex-end"}
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
{canDeleteUser && (
|
{canDeleteUser && (
|
||||||
@@ -200,7 +202,7 @@ const EditUserPage = () => {
|
|||||||
onClick={() => setShowDeleteDialog(true)}
|
onClick={() => setShowDeleteDialog(true)}
|
||||||
sx={{ minWidth: 100 }}
|
sx={{ minWidth: 100 }}
|
||||||
>
|
>
|
||||||
{t("pages.editUser.buttons.removeUser")}
|
{t("common.buttons.removeUser")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
@@ -223,8 +225,7 @@ const EditUserPage = () => {
|
|||||||
})}
|
})}
|
||||||
onCancel={() => setShowDeleteDialog(false)}
|
onCancel={() => setShowDeleteDialog(false)}
|
||||||
onConfirm={handleDeleteUser}
|
onConfirm={handleDeleteUser}
|
||||||
confirmColor="error"
|
confirmText={t("common.buttons.removeUser")}
|
||||||
confirmText={t("pages.editUser.buttons.removeUser")}
|
|
||||||
loading={isDeleting}
|
loading={isDeleting}
|
||||||
/>
|
/>
|
||||||
</BasePage>
|
</BasePage>
|
||||||
|
|||||||
@@ -46,7 +46,8 @@
|
|||||||
"sendTestEmail": "Send test email",
|
"sendTestEmail": "Send test email",
|
||||||
"exportToJSON": "Export to JSON",
|
"exportToJSON": "Export to JSON",
|
||||||
"importFromJSON": "Import from JSON",
|
"importFromJSON": "Import from JSON",
|
||||||
"clearFilters": "Clear filters"
|
"clearFilters": "Clear filters",
|
||||||
|
"removeUser": "Remove user"
|
||||||
},
|
},
|
||||||
"charts": {
|
"charts": {
|
||||||
"labels": {
|
"labels": {
|
||||||
@@ -620,9 +621,6 @@
|
|||||||
"description": "Assign roles to the user. Multiple roles can be selected."
|
"description": "Assign roles to the user. Multiple roles can be selected."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"buttons": {
|
|
||||||
"removeUser": "Remove user"
|
|
||||||
},
|
|
||||||
"dialog": {
|
"dialog": {
|
||||||
"removeUser": {
|
"removeUser": {
|
||||||
"title": "Remove user",
|
"title": "Remove user",
|
||||||
|
|||||||
Reference in new issue
Block a user