Fix: Fix build errors (#6)

Co-authored-by: Helena <helena@Helenas-MacBook-Pro.local>
This commit is contained in:
Helena
2025-06-05 16:58:40 +03:00
committed by GitHub
parent 2ce37ea99b
commit 7a0dac201e
8 changed files with 20 additions and 6 deletions

View File

@@ -5,7 +5,6 @@ import React from "react";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import Image from "next/image";
import medReportBigLogo from "@/assets/medReportBigLogo.png";
import { SubmitButton } from "@/components/submit-button";
import { yupResolver } from "@hookform/resolvers/yup";
import { useForm } from "react-hook-form";
@@ -84,7 +83,7 @@ export default function RegisterCompany() {
</form>
</div>
<div className="w-1/2">
<Image src={medReportBigLogo} alt="MedReport" priority />
<Image src='/assets/med-report-logo-big.png' alt="MedReport" width={494} height={674} priority />
</div>
</div>
);

View File

@@ -1,6 +1,5 @@
import { MedReportTitle } from "@/components/MedReportTitle";
import Image from "next/image";
import sucess from "@/assets/success.png";
import Link from "next/link";
import { Button } from "@/components/ui/button";
@@ -9,7 +8,13 @@ export default function CompanyRegistrationSuccess() {
<div className="pt-2 px-16 pb-12 border rounded-3xl border-border">
<MedReportTitle />
<div className="flex flex-col items-center px-4">
<Image src={sucess} alt="Success" className="pt-6 pb-8" />
<Image
src="/assets/success.png"
alt="Success"
className="pt-6 pb-8"
width={326}
height={195}
/>
<h1 className="pb-2">Päring edukalt saadetud!</h1>
<p>Saadame teile esimesel võimalusel vastuse</p>
</div>

View File

@@ -1,4 +1,4 @@
import { MedReportSmallLogo } from "@/assets/MedReportSmallLogo";
import { MedReportSmallLogo } from "@/public/assets/MedReportSmallLogo";
export const MedReportTitle = () => (
<div className="flex gap-2 justify-center">

View File

@@ -1,4 +1,4 @@
import { signOutAction } from "@/app/example/actions";
import { signOutAction } from "@/lib/actions/sign-out";
import { hasEnvVars } from "@/utils/supabase/check-env-vars";
import Link from "next/link";
import { Badge } from "./ui/badge";

10
lib/actions/sign-out.tsx Normal file
View File

@@ -0,0 +1,10 @@
"use server";
import { createClient } from "@/utils/supabase/server";
import { redirect } from "next/navigation";
export const signOutAction = async () => {
const supabase = await createClient();
await supabase.auth.signOut();
return redirect("/sign-in");
};

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB