chore: removed props.hideHeadingOnMobile (#19208)
* removed props.hideHeadingOnMobile * made sure CTA works
This commit is contained in:
1 parent
52775dd27c
commit
111f292c0d
20 files changed
+23
-67
No files matched your search
@@ -346,11 +346,7 @@ const ShellContainer = ({ page }: { page: React.ReactElement }) => {
|
||||
const { t } = useLocale();
|
||||
|
||||
return (
|
||||
<Shell
|
||||
title={t("routing_forms")}
|
||||
description={t("routing_forms_description")}
|
||||
withoutMain={true}
|
||||
hideHeadingOnMobile>
|
||||
<Shell title={t("routing_forms")} description={t("routing_forms_description")} withoutMain={true}>
|
||||
{page}
|
||||
</Shell>
|
||||
);
|
||||
|
||||
@@ -42,7 +42,7 @@ const PlatformMembersView = () => {
|
||||
if (!isPlatformUser)
|
||||
return (
|
||||
<div>
|
||||
<Shell isPlatformUser={true} hideHeadingOnMobile withoutMain={false} SidebarContainer={<></>}>
|
||||
<Shell isPlatformUser={true} withoutMain={false} SidebarContainer={<></>}>
|
||||
<NoPlatformPlan />
|
||||
</Shell>
|
||||
</div>
|
||||
@@ -65,7 +65,6 @@ const PlatformMembersView = () => {
|
||||
}
|
||||
title={t("platform_members")}
|
||||
subtitle={t("platform_members_description")}
|
||||
hideHeadingOnMobile
|
||||
withoutMain={false}
|
||||
isPlatformUser={true}>
|
||||
<div>{!isPending && canLoggedInUserSeeMembers && <UserListTable />}</div>
|
||||
|
||||
@@ -70,7 +70,6 @@ function WorkflowsPage({ filteredList }: PageProps) {
|
||||
subtitle={t("workflows_to_automate_notifications")}
|
||||
title={t("workflows")}
|
||||
description={t("workflows_to_automate_notifications")}
|
||||
hideHeadingOnMobile
|
||||
CTA={
|
||||
session.data?.hasValidLicense ? (
|
||||
<CreateButtonWithTeamsList
|
||||
|
||||
@@ -320,7 +320,6 @@ function WorkflowPage({
|
||||
</div>
|
||||
)
|
||||
}
|
||||
hideHeadingOnMobile
|
||||
heading={
|
||||
isAllDataLoaded && (
|
||||
<div className="flex">
|
||||
|
||||
@@ -96,7 +96,6 @@ export type LayoutProps = {
|
||||
beforeCTAactions?: JSX.Element;
|
||||
afterHeading?: ReactNode;
|
||||
smallHeading?: boolean;
|
||||
hideHeadingOnMobile?: boolean;
|
||||
isPlatformUser?: boolean;
|
||||
};
|
||||
|
||||
@@ -145,9 +144,8 @@ export function ShellMain(props: LayoutProps) {
|
||||
{(props.heading || !!props.backPath) && (
|
||||
<div
|
||||
className={classNames(
|
||||
"flex items-center md:mb-6 md:mt-0",
|
||||
props.smallHeading ? "lg:mb-7" : "lg:mb-8",
|
||||
props.hideHeadingOnMobile ? "mb-0" : "mb-6"
|
||||
"hidden items-center md:mb-6 md:mt-0 md:flex",
|
||||
props.smallHeading ? "lg:mb-7" : "lg:mb-8"
|
||||
)}>
|
||||
{!!props.backPath && (
|
||||
<Button
|
||||
@@ -173,8 +171,7 @@ export function ShellMain(props: LayoutProps) {
|
||||
<h3
|
||||
className={classNames(
|
||||
"font-cal text-emphasis max-w-28 sm:max-w-72 md:max-w-80 inline truncate text-lg font-semibold tracking-wide sm:text-xl md:block xl:max-w-full",
|
||||
props.smallHeading ? "text-base" : "text-xl",
|
||||
props.hideHeadingOnMobile && "hidden"
|
||||
props.smallHeading ? "text-base" : "text-xl"
|
||||
)}>
|
||||
{!isLocaleReady ? <SkeletonText invisible /> : props.heading}
|
||||
</h3>
|
||||
@@ -239,7 +236,7 @@ function MainContainer({
|
||||
<main className="bg-default relative z-0 flex-1 focus:outline-none">
|
||||
{/* show top navigation for md and smaller (tablet and phones) */}
|
||||
{TopNavContainerProp}
|
||||
<div className="max-w-full px-2 py-4 lg:px-6">
|
||||
<div className="max-w-full p-2 sm:py-4 lg:px-6">
|
||||
<ErrorBoundary>
|
||||
{!props.withoutMain ? <ShellMain {...props}>{props.children}</ShellMain> : props.children}
|
||||
</ErrorBoundary>
|
||||
|
||||
Reference in new issue
Block a user