Files
authsec_react_materail_ui/src/components/Dashboard/Setup.js

21 lines
498 B
JavaScript
Raw Normal View History

2025-06-13 10:04:33 +05:30
import React from 'react';
import { Outlet, useNavigate } from 'react-router-dom';
import CardList from './CardList'; // Import the CardList component
const Setup = () => {
const navigate = useNavigate();
return (
<div style={{ padding: '20px' }}>
{/* Show CardList when at /dashboard/setup */}
{window.location.pathname === '/dashboard/setup' ? (
<CardList />
) : (
<Outlet />
)}
</div>
);
};
export default Setup;