11import type { User } from "@prisma/client" ;
22import { signOut , useSession } from "next-auth/react" ;
33import Link from "next/link" ;
4- import { NextRouter , useRouter } from "next/router" ;
5- import React , { Dispatch , Fragment , ReactNode , SetStateAction , useEffect , useState } from "react" ;
4+ import type { NextRouter } from "next/router" ;
5+ import { useRouter } from "next/router" ;
6+ import type { Dispatch , ReactNode , SetStateAction } from "react" ;
7+ import React , { Fragment , useEffect , useState } from "react" ;
68import { Toaster } from "react-hot-toast" ;
79
810import dayjs from "@calcom/dayjs" ;
@@ -22,7 +24,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
2224import useTheme from "@calcom/lib/hooks/useTheme" ;
2325import { trpc } from "@calcom/trpc/react" ;
2426import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery" ;
25- import { SVGComponent } from "@calcom/types/SVGComponent" ;
27+ import type { SVGComponent } from "@calcom/types/SVGComponent" ;
2628import {
2729 Button ,
2830 Credits ,
@@ -640,7 +642,7 @@ const MobileNavigation = () => {
640642 < >
641643 < nav
642644 className = { classNames (
643- "bottom-nav fixed bottom-0 z-30 -mx-4 flex w-full border border-t border-gray-200 bg-gray-50 bg-opacity-40 px-1 shadow backdrop-blur-md md:hidden" ,
645+ "pwa:pb-2.5 fixed bottom-0 z-30 -mx-4 flex w-full border border-t border-gray-200 bg-gray-50 bg-opacity-40 px-1 shadow backdrop-blur-md md:hidden" ,
644646 isEmbed && "hidden"
645647 ) } >
646648 { mobileNavigationBottomItems . map ( ( item ) => (
@@ -669,7 +671,7 @@ const MobileNavigationItem: React.FC<{
669671 < Link
670672 key = { item . name }
671673 href = { item . href }
672- className = "relative my-2 min-w-0 flex-1 overflow-hidden rounded-md py-2 px -1 text-center text-xs font-medium text-gray-400 hover:bg-gray-200 hover:text-gray-700 focus:z-10 sm:text-sm [&[aria-current='page']]:text-gray-900"
674+ className = "relative my-2 min-w-0 flex-1 overflow-hidden rounded-md !bg-transparent p -1 text-center text-xs font-medium text-gray-400 hover:text-gray-700 focus:z-10 sm:text-sm [&[aria-current='page']]:text-gray-900"
673675 aria-current = { current ? "page" : undefined } >
674676 { item . badge && < div className = "absolute right-1 top-1" > { item . badge } </ div > }
675677 { item . icon && (
@@ -816,7 +818,7 @@ export function ShellMain(props: LayoutProps) {
816818 className = { classNames (
817819 props . backPath
818820 ? "relative"
819- : "fixed bottom-[88px] z-40 ltr:right-4 rtl:left-4 md:z-auto md:ltr:right-0 md:rtl:left-0" ,
821+ : "pwa:bottom-24 fixed bottom-20 z-40 ltr:right-4 rtl:left-4 md:z-auto md:ltr:right-0 md:rtl:left-0" ,
820822 "flex-shrink-0 md:relative md:bottom-auto md:right-auto"
821823 ) } >
822824 { props . CTA }
@@ -842,7 +844,7 @@ function MainContainer({
842844 < main className = "relative z-0 flex-1 bg-white focus:outline-none" >
843845 { /* show top navigation for md and smaller (tablet and phones) */ }
844846 { TopNavContainerProp }
845- < div className = "max-w-full px-4 py-4 md:py-8 lg:px-12" >
847+ < div className = "max-w-full px-4 md:py-8 lg:px-12" >
846848 < ErrorBoundary >
847849 { ! props . withoutMain ? < ShellMain { ...props } > { props . children } </ ShellMain > : props . children }
848850 </ ErrorBoundary >
0 commit comments