Commit b5b97bf4 by asranov0003

feat: render no data when permissions empty

parent dd9e24fa
......@@ -13,7 +13,8 @@
"confirm": "Confirm",
"password": "Password",
"passwordPlaceholder": "Enter your password",
"selectDevice": "Select Device"
"selectDevice": "Select Device",
"noData": "No data found"
},
"auth": {
"entrance": "Sign In",
......
......@@ -13,7 +13,8 @@
"confirm": "Подтвердить",
"password": "Пароль",
"passwordPlaceholder": "Введите ваш пароль",
"selectDevice": "Выбрать устройство"
"selectDevice": "Выбрать устройство",
"noData": "Данные не найдены"
},
"auth": {
"entrance": "Вход",
......
......@@ -119,6 +119,8 @@ const Permissions: React.FC = () => {
</h3>
<div className="permissions__content__items">
{permissions.length === 0 && <p>{t("common.noData")}</p>}
{permissions.map((permission) => {
return (
<div key={permission.id} className="permissions__content__item">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment