Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix activity log + add real data to seeds #42

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ArrowPathRoundedSquareIcon } from "@heroicons/react/24/outline";
import { useState } from "react";
import { useToast } from "@/components/ui/use-toast";

export default async function Page() {
export default function Page() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure correct handling of asynchronous operations.

The onSubmit function within Page uses await but is not declared as async. This will lead to runtime errors. Consider marking onSubmit as async:

- function onSubmit() {
+ async function onSubmit() {

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
export default function Page() {
export default function Page() {

const [isSubmitting, setIsSubmitting] = useState(false);
const { toast } = useToast();

Expand Down
2 changes: 1 addition & 1 deletion app/(authenticated)/(content)/attributes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async function Page() {
<div className="">
<div className="">
<h1 className="text-xl font-semibold">Attributes</h1>
<p className="mt-2 text-sm text-gray-400">Attribute details.</p>
<p className="mt-2 text-sm">Attribute details.</p>
</div>
</div>
<div className="mt-8 flex flex-col">
Expand Down
2 changes: 1 addition & 1 deletion app/(authenticated)/(content)/categories/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default async function Page() {
<div className="">
<div className="">
<h1 className="text-xl font-semibold">Categories</h1>
<p className="mt-2 text-sm text-gray-400">Category details</p>
<p className="mt-2 text-sm">Category details</p>
</div>
</div>
<div className="mt-8 flex flex-col">
Expand Down
2 changes: 1 addition & 1 deletion app/(authenticated)/(content)/products/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async function Page() {
<div className="">
<div className="">
<h1 className="text-xl font-semibold">Products</h1>
<p className="mt-2 text-sm text-gray-400">Product details</p>
<p className="mt-2 text-sm">Product details</p>
</div>
</div>
<div className="mt-8 flex flex-col">
Expand Down
2 changes: 1 addition & 1 deletion app/(authenticated)/(content)/suppliers/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async function Page() {
<div className="">
<div className="">
<h1 className="text-xl font-semibold">Suppliers</h1>
<p className="mt-2 text-sm text-gray-400">
<p className="mt-2 text-sm">
A list of all the suppliers in your account.
</p>
</div>
Expand Down
Loading
Loading