Prevent scrollbar from shifting content
This commit is contained in:
1 parent
d117f38a83
commit
409bb3262f
4 files changed
+5
-1
No files matched your search
@@ -25,7 +25,7 @@ const Account = ({ open = "profile" }) => {
|
||||
const { user } = useSelector((state) => state.auth);
|
||||
|
||||
const requiredRoles = ["superadmin", "admin"];
|
||||
let tabList = ["Profile", "Team", "Password"];
|
||||
let tabList = ["Profile", "Password", "Team"];
|
||||
const hideTeams = !requiredRoles.some((role) => user.role.includes(role));
|
||||
if (hideTeams) {
|
||||
tabList = ["Profile", "Password"];
|
||||
|
||||
Reference in new issue
Block a user