Add row click handling to notificaitons table
This commit is contained in:
1 parent
a105e85a5a
commit
7587fea6d5
2 files changed
+12
-1
No files matched your search
@@ -131,7 +131,7 @@ const useEditNotification = () => {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [error, setError] = useState(null);
|
||||
const { t } = useTranslation();
|
||||
|
||||
const navigate = useNavigate();
|
||||
const editNotification = async (id, notification) => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
@@ -139,6 +139,7 @@ const useEditNotification = () => {
|
||||
createToast({
|
||||
body: t("notifications.edit.success"),
|
||||
});
|
||||
navigate(`/notifications`);
|
||||
} catch (error) {
|
||||
setError(error);
|
||||
createToast({
|
||||
|
||||
Reference in new issue
Block a user