diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 361bb6a..5782ca4 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -174,8 +174,8 @@ function App() { newSet.delete(projectId); console.log('π¦ νμ±ν νλ‘μ νΈ μ λ°μ΄νΈ:', { prev: Array.from(prev), new: Array.from(newSet) }); return newSet; - }); - }; + }); + }; // μΈμ¦ μν νμΈ useEffect(() => { @@ -192,13 +192,13 @@ function App() { } } catch (error) { console.error('μΈμ¦ νμΈ μ€ν¨:', error); - localStorage.removeItem('access_token'); - localStorage.removeItem('user_data'); - setIsAuthenticated(false); + localStorage.removeItem('access_token'); + localStorage.removeItem('user_data'); + setIsAuthenticated(false); } finally { setIsLoading(false); } - }; + }; checkAuth(); }, []); @@ -213,7 +213,7 @@ function App() { const renderCurrentPage = () => { switch (currentPage) { case 'dashboard': - return ( + return ( ); case 'account-settings': return ( - { @@ -297,21 +297,21 @@ function App() { ); case 'user-management': return ( - ); case 'system-logs': return ( - ); case 'log-monitoring': return ( - @@ -339,20 +339,20 @@ function App() { β μ μ μλ νμ΄μ§μ λλ€. - navigateToPage('dashboard')} - style={{ - background: '#4299e1', - color: 'white', - border: 'none', - borderRadius: '6px', - padding: '12px 24px', - cursor: 'pointer', - marginTop: '16px' - }} - > - λμ보λλ‘ λμκ°κΈ° - + navigateToPage('dashboard')} + style={{ + background: '#4299e1', + color: 'white', + border: 'none', + borderRadius: '6px', + padding: '12px 24px', + cursor: 'pointer', + marginTop: '16px' + }} + > + λμ보λλ‘ λμκ°κΈ° + ); @@ -376,21 +376,21 @@ function App() { loadProjects(); }; - return ( + return ( {isLoading ? ( - - - π - λ‘λ© μ€... - + + + π + λ‘λ© μ€... + ) : !isAuthenticated ? ( ) : ( @@ -422,8 +422,8 @@ function App() { {/* νμ΄μ§ 컨ν μΈ */} - {renderCurrentPage()} - + {renderCurrentPage()} + )} );