Skip to content

Commit

Permalink
removed constants
Browse files Browse the repository at this point in the history
updated action name to deprecate
removed admin page
  • Loading branch information
Oba-One committed May 10, 2024
1 parent 5120103 commit a759bb0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
19 changes: 1 addition & 18 deletions packages/client/src/actions/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,7 @@ export async function createMetric(metrin: CreateMetric) {
}
}

export async function updateMetric(metrin: CreateMetric) {
"use-server";

try {
// const res = await supabaseClient.insert(metric)

return {
message: "Metric succesfully created.",
};
} catch (error) {
return {
message: "Error creating metric.",
error,
};
}
}

export async function deleteMetric(metrin: CreateMetric) {
export async function deprecateMetric(metrin: CreateMetric) {
"use-server";

try {
Expand Down
6 changes: 1 addition & 5 deletions packages/client/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { NextPage } from "next";
import dynamic from "next/dynamic";

const AdminApp = dynamic(() => import("@/components/AdminApp"), {
ssr: false,
});

const Home: NextPage = () => <AdminApp />;
const Home: NextPage = () => <div />;

export default Home;
4 changes: 0 additions & 4 deletions packages/client/src/constants.ts

This file was deleted.

0 comments on commit a759bb0

Please sign in to comment.