Fix: Fix build errors (#6)
Co-authored-by: Helena <helena@Helenas-MacBook-Pro.local>
This commit is contained in:
@@ -5,7 +5,6 @@ import React from "react";
|
|||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import medReportBigLogo from "@/assets/medReportBigLogo.png";
|
|
||||||
import { SubmitButton } from "@/components/submit-button";
|
import { SubmitButton } from "@/components/submit-button";
|
||||||
import { yupResolver } from "@hookform/resolvers/yup";
|
import { yupResolver } from "@hookform/resolvers/yup";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
@@ -84,7 +83,7 @@ export default function RegisterCompany() {
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-1/2">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { MedReportTitle } from "@/components/MedReportTitle";
|
import { MedReportTitle } from "@/components/MedReportTitle";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import sucess from "@/assets/success.png";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Button } from "@/components/ui/button";
|
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">
|
<div className="pt-2 px-16 pb-12 border rounded-3xl border-border">
|
||||||
<MedReportTitle />
|
<MedReportTitle />
|
||||||
<div className="flex flex-col items-center px-4">
|
<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>
|
<h1 className="pb-2">Päring edukalt saadetud!</h1>
|
||||||
<p>Saadame teile esimesel võimalusel vastuse</p>
|
<p>Saadame teile esimesel võimalusel vastuse</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { MedReportSmallLogo } from "@/assets/MedReportSmallLogo";
|
import { MedReportSmallLogo } from "@/public/assets/MedReportSmallLogo";
|
||||||
|
|
||||||
export const MedReportTitle = () => (
|
export const MedReportTitle = () => (
|
||||||
<div className="flex gap-2 justify-center">
|
<div className="flex gap-2 justify-center">
|
||||||
|
|||||||
@@ -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 { hasEnvVars } from "@/utils/supabase/check-env-vars";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Badge } from "./ui/badge";
|
import { Badge } from "./ui/badge";
|
||||||
|
|||||||
10
lib/actions/sign-out.tsx
Normal file
10
lib/actions/sign-out.tsx
Normal 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");
|
||||||
|
};
|
||||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Reference in New Issue
Block a user