Skip to content

Commit

Permalink
formated
Browse files Browse the repository at this point in the history
  • Loading branch information
devlopersabbir committed Jan 25, 2024
1 parent ec9f691 commit 59f4d5b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 16 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ Find Dev is a kind of developer's Fair. An open-source platform to find all the
- Add your profile in just two clicks
- Easily filter developers based on your specific needs
- Enjoy an interactive user interface

2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function RootLayout({
suppressHydrationWarning={true}
className={cn(
"relative h-full font-sans antialiased bg-zinc-100 dark:bg-zinc-900",
inter.className
inter.className,
)}
>
<ThemeProvider
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/CreateProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const CreateProfile = ({
/** image handler */
const handleImage = async (
event: ChangeEvent<HTMLInputElement>,
fieldChange: (value: string) => void
fieldChange: (value: string) => void,
) => {
event.preventDefault();
/** File reader */
Expand Down
4 changes: 1 addition & 3 deletions src/components/shared/Notfound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const Notfound = () => {
<Image src="/sorry.png" alt="not found" width={160} height={213} />
<div className="flex-center flex-col gap-1">
<h1 className="font-bold text-3xl">No Developers Founds!</h1>
<p className="font-light text-base">
We couldn't find any developers 🥲
</p>
<p className="font-light text-base">We couldn't find any developers</p>
</div>
</div>
);
Expand Down
16 changes: 8 additions & 8 deletions src/components/ui/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ const Carousel = React.forwardRef<
children,
...props
},
ref
ref,
) => {
const [carouselRef, api] = useEmblaCarousel(
{
...opts,
axis: orientation === "horizontal" ? "x" : "y",
},
plugins
plugins,
);
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
const [canScrollNext, setCanScrollNext] = React.useState(false);
Expand All @@ -79,7 +79,7 @@ const Carousel = React.forwardRef<
scrollNext();
}
},
[scrollPrev, scrollNext]
[scrollPrev, scrollNext],
);

React.useEffect(() => {
Expand Down Expand Up @@ -122,7 +122,7 @@ const Carousel = React.forwardRef<
</div>
</CarouselContext.Provider>
);
}
},
);
Carousel.displayName = "Carousel";

Expand All @@ -139,7 +139,7 @@ const CarouselContent = React.forwardRef<
className={cn(
"flex",
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
className
className,
)}
{...props}
/>
Expand All @@ -162,7 +162,7 @@ const CarouselItem = React.forwardRef<
className={cn(
"min-w-0 shrink-0 grow-0 basis-full",
orientation === "horizontal" ? "pl-4" : "pt-4",
className
className,
)}
{...props}
/>
Expand All @@ -186,7 +186,7 @@ const CarouselPrevious = React.forwardRef<
orientation === "horizontal"
? "-left-12 top-1/2 -translate-y-1/2"
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
className
className,
)}
disabled={!canScrollPrev}
onClick={scrollPrev}
Expand Down Expand Up @@ -215,7 +215,7 @@ const CarouselNext = React.forwardRef<
orientation === "horizontal"
? "-right-12 top-1/2 -translate-y-1/2"
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
className
className,
)}
disabled={!canScrollNext}
onClick={scrollNext}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/actions/user.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { users } from "@/schemas";
*/
export const createProfile = async (
inputs: TUserSchema,
pathname: string
pathname: string,
): Promise<void> => {
const { success } = userSchema.safeParse(inputs);
if (!success) throw new Error("Invalid inputs");
Expand Down
2 changes: 1 addition & 1 deletion src/lib/validations/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const userSchema = z.object({
z.object({
network: z.string(),
link: z.string(),
})
}),
)
.optional(),
portfolio: z.string().nonempty({ message: "Profile is required!" }),
Expand Down

0 comments on commit 59f4d5b

Please sign in to comment.