Skip to content
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
15 changes: 14 additions & 1 deletion app/(api)/_actions/auth/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,18 @@
import Register from '@datalib/auth/register';

export default async function RegisterAction(body: object) {
return Register(body);
try {
const result = await Register(body);
if (!result.ok) {
return result;
}
return { ok: true, body: null, error: null };
} catch (e) {
const error = e as Error;
return {
ok: false,
body: null,
error: error.message,
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ export default function AuthFormBackground({
title,
subtitle,
children,
showAngelCow = true,
}: {
title: string;
subtitle: string;
children: React.ReactNode;
showAngelCow?: boolean;
}) {
const [mascotsVisibility, setMascotsVisibility] = useState(true);
const pathname = usePathname();
Expand All @@ -35,13 +37,15 @@ export default function AuthFormBackground({
<div className="flex flex-col md:flex-row w-full h-screen">
<div className="flex flex-[1_0_auto] md:flex-1 flex-col justify-end md:justify-center items-center w-full px-6 md:px-[82px]">
<div className="flex flex-col items-start w-full">
<Image
src={VocalAngelCow}
alt="Angel Cow"
height={100}
width={100}
className="pb-[12px]"
/>
{showAngelCow && (
<Image
src={VocalAngelCow}
alt="Angel Cow"
height={100}
width={100}
className="pb-[12px]"
/>
)}
<h1 className="text-[20px] md:text-[22px] font-semibold text-[#3F3F3F]">
{title}
</h1>
Expand Down
249 changes: 0 additions & 249 deletions app/(pages)/(hackers)/_components/AuthForms/DetailForm.module.scss

This file was deleted.

Loading
Loading