Files
LynkedUpPro_CRM/src/components/PageTransition.jsx
T
Satyam-Rastogi c584d918ac fix(kanban): responsive layout, drag-drop offset, and project view enhancements
Kanban pipeline board:
- Fix h-full flex-col layout so board fills viewport height on all screen sizes
- KanbanColumn drop zone: flex-1 min-h-0 so it expands to fill full column height
- KanbanCard: extract KanbanCardDisplay as named export for DragOverlay rendering above overflow containers
- KanbanPage: lift DndContext to page root; add "Add Stage" shortcut to page header
- PageTransition: remove slide-in-from-bottom-4 transform — the CSS transform ancestor was creating a containing block for position:fixed DragOverlay, causing drag ghost to render at a viewport offset
- Migrate fireCampaignToast to toast.custom() Sonner v2 API with explicit card styling

Project & lead views:
- LeadProjectPage: enrich project detail with richer info sections aligned with project stage
- OwnerProjectDetail: expand construction project detail with additional data panels
- OwnerProjectList: project list view improvements
- mockStore: extend lead/project data to support richer project detail rendering
2026-04-08 23:40:45 +05:30

24 lines
778 B
React

import React, { useEffect, useState } from 'react';
import { useLocation } from 'react-router-dom';
const PageTransition = ({ children }) => {
const location = useLocation();
const [displayLocation, setDisplayLocation] = useState(location);
const [transitionStage, setTransitionStage] = useState('fadeIn');
// Simple Fade In animation on mount/route change
// Note: For complex exit animations, we'd need a more robust library like framer-motion.
// Given the constraints and desire for "speed", a quick fade-in is often best.
return (
<div
key={location.pathname}
className="h-full animate-in fade-in duration-300 ease-out"
>
{children}
</div>
);
};
export default PageTransition;