Skip to content

Commit 0d46d5f

Browse files
committed
Merge branch 'development' of github.com:hammercode-dev/hammercode-web into feat/user-profile
2 parents 0312c39 + 2d13bfa commit 0d46d5f

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

18.3 KB
Loading

src/components/ui/Toaster/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const Toaster = ({ ...props }: ToasterProps) => {
2121
classNames: {
2222
success: "!bg-green-500 !text-white",
2323
error: "!bg-destructive !text-white",
24-
description: "!text-muted-foreground",
24+
title: "!text-popover-foreground !font-semibold",
25+
description: "!text-popover-foreground",
2526
},
2627
}}
2728
{...props}

src/domains/Events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const eventSchema = z.object({
1212
location: z.string(),
1313
duration: z.string(),
1414
capacity: z.number(),
15-
status: z.enum(["open", "soon", "closed", "comming soon"]),
15+
status: z.enum(["open", "soon", "closed"]),
1616
tags: z
1717
.array(
1818
z.object({

src/features/events/hooks/useEvent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useState } from "react";
22
import { toast } from "sonner";
33
import { eventsService } from "@/services/events";
4-
import { EventType } from "@/domains/Events";
4+
import { EventType, UserEventType } from "@/domains/Events";
55

66
export const useEventById = (eventId: string) => {
77
const [event, setEvent] = useState<EventType>({} as EventType);
@@ -50,7 +50,7 @@ export const useEvents = () => {
5050
};
5151

5252
export const useMyEvents = (page: number = 1, limit: number = 10) => {
53-
const [myEvents, setMyEvents] = useState<EventType[]>([]);
53+
const [myEvents, setMyEvents] = useState<UserEventType[]>([]);
5454
const [isLoading, setIsLoading] = useState<boolean>(false);
5555

5656
useEffect(() => {

0 commit comments

Comments
 (0)