fixed back button, fixed app store detail on mobile (#4737)
This commit is contained in:
1 parent
a792d31939
commit
6c046f6507
2 files changed
+9
-3
No files matched your search
@@ -4,6 +4,7 @@ import { signOut, useSession } from "next-auth/react";
|
||||
import Link from "next/link";
|
||||
import { NextRouter, useRouter } from "next/router";
|
||||
import React, { Dispatch, Fragment, ReactNode, SetStateAction, useEffect, useState } from "react";
|
||||
import { Trash2 } from "react-feather";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
|
||||
import dayjs from "@calcom/dayjs";
|
||||
@@ -26,6 +27,7 @@ import Dropdown, {
|
||||
DropdownMenuTrigger,
|
||||
} from "@calcom/ui/Dropdown";
|
||||
import { Icon } from "@calcom/ui/Icon";
|
||||
import Button from "@calcom/ui/v2/core/Button";
|
||||
|
||||
/* TODO: Get this from endpoint */
|
||||
import pkg from "../../../../apps/web/package.json";
|
||||
@@ -747,9 +749,13 @@ export function ShellMain(props: LayoutProps) {
|
||||
<>
|
||||
<div className="flex items-baseline sm:mt-0">
|
||||
{!!props.backPath && (
|
||||
<Icon.FiArrowLeft
|
||||
className="mr-3 hover:cursor-pointer"
|
||||
<Button
|
||||
size="icon"
|
||||
color="minimal"
|
||||
onClick={() => router.push(props.backPath as string)}
|
||||
StartIcon={Icon.FiArrowLeft}
|
||||
aria-label="Go Back"
|
||||
className="ltr:mr-2 rtl:ml-2"
|
||||
/>
|
||||
)}
|
||||
{props.heading && (
|
||||
|
||||
Reference in new issue
Block a user