feat(migration): dashboard migrated over
This commit is contained in:
@@ -1,9 +1,26 @@
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { AddCards } from "./-components/dashboard/AddCards";
|
||||
import DashBoard from "./-components/dashboard/Dashboard";
|
||||
import { useCardStore } from "./-lib/store/useCardStore";
|
||||
|
||||
export const Route = createFileRoute("/_old/old/")({
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>Missing DashBoard</div>;
|
||||
const { cards } = useCardStore();
|
||||
return (
|
||||
<div>
|
||||
{cards.length > 0 ? (
|
||||
<DashBoard />
|
||||
) : (
|
||||
<div className="m-3">
|
||||
<span>
|
||||
Looks like you have no cards added try clicking adding some
|
||||
</span>{" "}
|
||||
<AddCards />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user