Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions DashboardPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React, { useCallback } from 'react';
import { useNavigate } from 'react-router-dom';
import { Button } from '@mui/material';
import InfoIcon from '@mui/icons-material/Info';

const DashboardPage = () => {
const navigate = useNavigate();

const handleCompanyClick = useCallback(() => {
navigate('/company');
}, [navigate]);

return (
<Button
variant="contained"
color="primary"
onClick={handleCompanyClick}
startIcon={<InfoIcon />}
>
자세히
</Button>
);
};

export default DashboardPage;
6 changes: 3 additions & 3 deletions src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ export default function DashboardPage() {
<div className={`${currentTheme.cardBg} p-6 rounded-xl shadow-sm ${currentTheme.border}`}>
<div className="flex items-center justify-between mb-4">
<h3 className={`text-base font-medium ${currentTheme.text}`}>사용자</h3>
<button className={`text-sm ${currentTheme.activeText} hover:opacity-80 font-medium`}>
+ 등록
</button>
<Link href="/companies" className={`text-sm ${currentTheme.activeText} hover:opacity-80 font-medium`}>
자세히
</Link>
</div>
<div className="space-y-3">
<div className="flex justify-between items-center">
Expand Down