refactor: remove 10 trpc imports from features package by moving 16 tRPC-driven components to apps/web/modules (#27336)
* refactor: move Segment, BookerLayoutSelector, CreateLicenseKeyForm from packages/features to apps/web/modules Co-Authored-By: [email protected] <[email protected]> * fix: update relative imports to absolute paths in moved files Co-Authored-By: [email protected] <[email protected]> * refactor: move useBookingLocation and blocklist components from packages/features to apps/web/modules Co-Authored-By: [email protected] <[email protected]> * refactor: move EmbedTabs and embed hooks from packages/features to apps/web/modules Co-Authored-By: [email protected] <[email protected]> * fix * migrate useBookerUrl * migrate embed tabs * fix * fix * fix * mv ThemeLabel * mv settings headers to webn * update imports * clean up --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
ea0d9cbbeb
commit
b3430c8efc
107 files changed
+186
-137
No files matched your search
@@ -1,23 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import { useRouter } from "next/navigation";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
import SettingsHeader from "./SettingsHeader";
|
||||
|
||||
type SettingsHeaderWithBackButtonProps = {
|
||||
children: ReactNode;
|
||||
title?: string;
|
||||
description?: string;
|
||||
CTA?: ReactNode;
|
||||
ctaClassName?: string;
|
||||
borderInShellHeader?: boolean;
|
||||
};
|
||||
|
||||
export default function SettingsHeaderWithBackButton(props: SettingsHeaderWithBackButtonProps) {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<SettingsHeader {...props} backButton={true} onBackButtonClick={() => router.back()} />
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user