Skip to content

Commit

Permalink
Merge pull request #2 from jweboy-biubiubiu/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 7, 2024
2 parents 4cfd795 + fe58b23 commit 0ce3634
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 277 deletions.
55 changes: 0 additions & 55 deletions app/dashboard/platform/columns.tsx

This file was deleted.

155 changes: 0 additions & 155 deletions app/dashboard/platform/components/DtoForm.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions app/dashboard/platform/components/FormDialog.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions app/dashboard/platform/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/dashboard/product/form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ProductForm = () => {
const id = searchParams.get("id");
const { data } = useSWR(() => `/platform/${id}`);
const { trigger } = useSWRMutation(
() => (id ? `/platform/${id}` : "/platform"),
id ? () => `/platform/${id}` : "/platform",
!!id ? updateProduct : createProduct,
{
onSuccess() {
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/product/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from "lucide-react";
import Image from "next/image";
import React from "react";
import { DataTable } from "../platform/components/DataTable";
import { DataTable } from "@/components/DataTable";
import { request } from "@/lib/request";
import { columns } from "./columns";
import { revalidateTag } from "next/cache";
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { redirect } from "next/navigation";

function Home() {
redirect("/dashboard/platform");
redirect("/dashboard/product");
}

export default Home;
File renamed without changes.

0 comments on commit 0ce3634

Please sign in to comment.