Return an array rather than an object.
This commit is contained in:
1 parent
b1194ebd48
commit
00700c8651
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ const NotificationIntegrationModal = ({
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const [tabValue, setTabValue] = useState(0);
|
const [tabValue, setTabValue] = useState(0);
|
||||||
|
|
||||||
const { loading, sendTestNotification } = useNotifications();
|
const [loading, _, sendTestNotification] = useNotifications();
|
||||||
|
|
||||||
// Helper to get the field state key with error handling
|
// Helper to get the field state key with error handling
|
||||||
const getFieldKey = (typeId, fieldId) => {
|
const getFieldKey = (typeId, fieldId) => {
|
||||||
|
|||||||
@@ -106,11 +106,11 @@ const useNotifications = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return [
|
||||||
loading,
|
loading,
|
||||||
error,
|
error,
|
||||||
sendTestNotification
|
sendTestNotification
|
||||||
};
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
export default useNotifications;
|
export default useNotifications;
|
||||||
Reference in new issue
Block a user