Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/Settings.jsx
Browse files
frontend/src/pages/Settings.jsx
CHANGED
|
@@ -4,6 +4,8 @@ import toast from 'react-hot-toast';
|
|
| 4 |
import Profile from './Profile';
|
| 5 |
|
| 6 |
export const AlertSettingsPage = () => {
|
|
|
|
|
|
|
| 7 |
const [activeTab, setActiveTab] = useState(() => {
|
| 8 |
return localStorage.getItem('settingsActiveTab') || 'profile';
|
| 9 |
}); // profile, notifications, apiKeys, team, billing, scheduler
|
|
@@ -207,8 +209,6 @@ export const AlertSettingsPage = () => {
|
|
| 207 |
});
|
| 208 |
};
|
| 209 |
|
| 210 |
-
const { token, user, reloadUser } = useAuth();
|
| 211 |
-
|
| 212 |
useEffect(() => {
|
| 213 |
fetchSettings();
|
| 214 |
}, [token]);
|
|
|
|
| 4 |
import Profile from './Profile';
|
| 5 |
|
| 6 |
export const AlertSettingsPage = () => {
|
| 7 |
+
const { token, user, reloadUser } = useAuth();
|
| 8 |
+
|
| 9 |
const [activeTab, setActiveTab] = useState(() => {
|
| 10 |
return localStorage.getItem('settingsActiveTab') || 'profile';
|
| 11 |
}); // profile, notifications, apiKeys, team, billing, scheduler
|
|
|
|
| 209 |
});
|
| 210 |
};
|
| 211 |
|
|
|
|
|
|
|
| 212 |
useEffect(() => {
|
| 213 |
fetchSettings();
|
| 214 |
}, [token]);
|