-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
We need to build a complete User Profile section in our application using React.
The idea is to create a common template for all user-related pages so that the structure remains consistent and easy to maintain.
Goal
Create a reusable User Template that will be used for every page related to users.
All user pages should load inside this template using React Outlet.
Required Components
The User Profile Page should be divided into separate React components:
- Menu Component
- Sidebar Component
- User Template Layout
- Individual User Pages rendered through Outlet
Each part must be created as an independent component for better modularity.
Technical Requirements
- Use React Router Outlet for rendering nested user pages
- Implement a main template layout for user section
- Use a clean component-based architecture
- All user-related pages must use this common template
- The template should contain a sidebar and menu area
- Pages should be displayed using
<Outlet />
Why This Is Needed
- Provides a standard layout for all user pages
- Makes navigation easy
- Improves code organization
- Helps future contributors work on user features without confusion
- Keeps the project scalable and clean
Pages to Use This Template
The following pages must be implemented through this template:
- User Dashboard
- View Profile
- Edit Profile
- User Settings
- Any future user-specific pages
Expected Outcome
- A fully working User Profile page
- A reusable React template layout
- All user pages correctly rendered via React Outlet
- Clear navigation between components
- Easy integration for new user features
Acceptance Criteria
- Menu, Sidebar, and Template components are created separately
- Outlet is properly implemented
- Routing works inside UserTemplate
- All user pages load using this template
- Code is clean and modular
- Template is easy for new contributors to understand and extend
