🩹 Fix: Remove unused imports causing build failure
This commit is contained in:
@@ -5,12 +5,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { Settings, Building, Save, Shield, Globe, Mail } from 'lucide-react';
|
import { Building, Save, Shield, Globe } from 'lucide-react';
|
||||||
import { motion } from 'framer-motion';
|
|
||||||
import apiClient from '../../api/client';
|
import apiClient from '../../api/client';
|
||||||
|
|
||||||
export const SettingsPage = () => {
|
export const SettingsPage = () => {
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
|
||||||
const [isSaving, setIsSaving] = useState(false);
|
const [isSaving, setIsSaving] = useState(false);
|
||||||
|
|
||||||
// Tenant Profile State
|
// Tenant Profile State
|
||||||
@@ -20,7 +18,6 @@ export const SettingsPage = () => {
|
|||||||
const [address, setAddress] = useState('');
|
const [address, setAddress] = useState('');
|
||||||
|
|
||||||
const fetchSettings = async () => {
|
const fetchSettings = async () => {
|
||||||
setIsLoading(true);
|
|
||||||
try {
|
try {
|
||||||
// Get current tenant info (usually from a profile or me endpoint)
|
// Get current tenant info (usually from a profile or me endpoint)
|
||||||
const { data } = await apiClient.get('/auth/me'); // Assuming there's a me endpoint for the tenant
|
const { data } = await apiClient.get('/auth/me'); // Assuming there's a me endpoint for the tenant
|
||||||
@@ -29,8 +26,6 @@ export const SettingsPage = () => {
|
|||||||
// phone and address might be null
|
// phone and address might be null
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to fetch settings', error);
|
console.error('Failed to fetch settings', error);
|
||||||
} finally {
|
|
||||||
setIsLoading(false);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { Users, UserPlus, Shield, Mail, Phone, Trash2, Power } from 'lucide-react';
|
import { Users, UserPlus, Mail, Power } from 'lucide-react';
|
||||||
import { motion, AnimatePresence } from 'framer-motion';
|
import { motion, AnimatePresence } from 'framer-motion';
|
||||||
import apiClient from '../../api/client';
|
import apiClient from '../../api/client';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user