feat: complete admin panel major functionalities including responsive layout, recharts, custom modals, inline editing, and loading states
This commit is contained in:
1 parent
ee041d4e52
commit
a7ebb8d792
33 files changed
+1311
-173
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { NotFoundPage } from "../../components/ErrorPages";
|
||||
import { NotFoundPage } from "../components/ErrorPages";
|
||||
|
||||
export default function NotFound() {
|
||||
return <NotFoundPage />;
|
||||
|
||||
@@ -11,7 +11,7 @@ export default function Home() {
|
||||
{/* SmartAdvisor uses uiStore/userStore internally and handles routing automatically */}
|
||||
<SmartAdvisor />
|
||||
<FeaturedProducts />
|
||||
<VetGallery onNavigate={() => {}} />
|
||||
<VetGallery />
|
||||
|
||||
{/* Navigation to Sections */}
|
||||
<section className="py-20 bg-medical-gray-50 border-y border-medical-gray-100">
|
||||
|
||||
@@ -20,8 +20,8 @@ export default function CartDrawer({ isOpen, onClose, onCheckout, onShopNavigate
|
||||
const [couponStatus, setCouponStatus] = useState<"idle" | "success" | "error">("idle");
|
||||
const [deleteConfirmId, setDeleteConfirmId] = useState<string | null>(null);
|
||||
|
||||
const handleApplyCoupon = () => {
|
||||
const success = applyCoupon(couponCode);
|
||||
const handleApplyCoupon = async () => {
|
||||
const success = await applyCoupon(couponCode);
|
||||
if (success) {
|
||||
setCouponStatus("success");
|
||||
setTimeout(() => setCouponStatus("idle"), 3000);
|
||||
|
||||
@@ -594,7 +594,7 @@ export default function PetProfile({ initialView, advisorNeed }: {
|
||||
<div className="flex items-center gap-2 text-[10px] font-black text-medical-gray-400 uppercase tracking-widest">
|
||||
<span className="cursor-pointer hover:text-canina-blue" onClick={() => setView("index")}>همدمهای من</span>
|
||||
<ChevronLeft className="w-3 h-3" />
|
||||
<span className="text-canina-blue">پرونده سلامت {activePet.name}</span>
|
||||
<span className="text-canina-blue">پرونده سلامت {activePet?.name}</span>
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3">
|
||||
|
||||
File renamed without changes.
Generated
+4
-4
@@ -9,7 +9,7 @@
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"axios": "^1.17.0",
|
||||
"lucide-react": "^1.17.0",
|
||||
"lucide-react": "^0.475.0",
|
||||
"motion": "^12.40.0",
|
||||
"next": "16.2.9",
|
||||
"react": "19.2.4",
|
||||
@@ -5162,9 +5162,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/lucide-react": {
|
||||
"version": "1.17.0",
|
||||
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.17.0.tgz",
|
||||
"integrity": "sha512-9FA9evdox/JQL5PT57fdA1x/yg8T7knJ98+zjTL3UfKza6pflQUUh3XtaQIHKvnsJw1lmsEyHVlt5jchYxOQ5w==",
|
||||
"version": "0.475.0",
|
||||
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.475.0.tgz",
|
||||
"integrity": "sha512-NJzvVu1HwFVeZ+Gwq2q00KygM1aBhy/ZrhY9FsAgJtpB+E4R7uxRk9M2iKvHa6/vNxZydIB59htha4c2vvwvVg==",
|
||||
"license": "ISC",
|
||||
"peerDependencies": {
|
||||
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.17.0",
|
||||
"lucide-react": "^1.17.0",
|
||||
"lucide-react": "^0.475.0",
|
||||
"motion": "^12.40.0",
|
||||
"next": "16.2.9",
|
||||
"react": "19.2.4",
|
||||
|
||||
Reference in new issue
Block a user