B2B-30: hide 'create team' button from not super_admins

This commit is contained in:
devmc-ee
2025-06-15 10:05:52 +03:00
parent ab933bee9c
commit 05a512a942
16 changed files with 70 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
import Link from 'next/link';
import { MedReportTitle } from '@/components/med-report-title';
import { MedReportLogo } from '@/components/med-report-title';
import { ArrowRightIcon } from 'lucide-react';
import { CtaButton, Hero } from '@kit/ui/marketing';
@@ -13,7 +13,7 @@ function Home() {
<div className={'mt-4 flex flex-col space-y-24 py-14'}>
<div className={'container mx-auto'}>
<Hero
title={<MedReportTitle />}
title={<MedReportLogo />}
subtitle={
<span>
<Trans i18nKey={'marketing:heroSubtitle'} />

View File

@@ -1,6 +1,6 @@
"use client";
import { MedReportTitle } from "@/components/med-report-title";
import { MedReportLogo } from "@/components/med-report-title";
import React from "react";
import { yupResolver } from "@hookform/resolvers/yup";
import { useForm } from "react-hook-form";
@@ -45,7 +45,7 @@ export default function RegisterCompany() {
return (
<div className="flex flex-row border rounded-3xl border-border max-w-5xl overflow-hidden">
<div className="flex flex-col text-center py-14 px-12 w-1/2">
<MedReportTitle />
<MedReportLogo />
<h1 className="pt-8">Ettevõtte andmed</h1>
<p className="pt-2 text-muted-foreground text-sm">
Pakkumise saamiseks palun sisesta ettevõtte andmed millega MedReport

View File

@@ -1,11 +1,12 @@
import { MedReportTitle } from "@/components/med-report-title";
import { MedReportLogo } from "@/components/med-report-title";
import { Button } from "@kit/ui/button";
import Image from "next/image";
import Link from "next/link";
export default function CompanyRegistrationSuccess() {
return (
<div className="pt-2 px-16 pb-12 border rounded-3xl border-border">
<MedReportTitle />
<MedReportLogo />
<div className="flex flex-col items-center px-4">
<Image
src="/assets/success.png"