From 702b800963a74869e7ac66bfd670ef958f718a17 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Fri, 18 Oct 2024 14:41:05 -0700 Subject: [PATCH] =?UTF-8?q?chore(shell-center-row):=20ensure=20deprecation?= =?UTF-8?q?=20warning=20doesn=E2=80=99t=20show=20when=20using=20standalone?= =?UTF-8?q?=20shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shell-center-row/shell-center-row.tsx | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/packages/calcite-components/src/components/shell-center-row/shell-center-row.tsx b/packages/calcite-components/src/components/shell-center-row/shell-center-row.tsx index 1c7be66cf48..4f757c03527 100644 --- a/packages/calcite-components/src/components/shell-center-row/shell-center-row.tsx +++ b/packages/calcite-components/src/components/shell-center-row/shell-center-row.tsx @@ -4,12 +4,6 @@ import { slotChangeGetAssignedElements } from "../../utils/dom"; import { logger } from "../../utils/logger"; import { CSS, SLOTS } from "./resources"; -logger.deprecated("component", { - name: "shell-center-row", - removalVersion: 4, - suggested: "shell-panel", -}); - /** * @deprecated Use the `calcite-shell-panel` component instead. * @slot - A slot for adding content to the `calcite-shell-panel`. @@ -52,6 +46,20 @@ export class ShellCenterRow { @State() actionBar: HTMLCalciteActionBarElement; + //-------------------------------------------------------------------------- + // + // Lifecycle + // + //-------------------------------------------------------------------------- + + componentWillLoad(): void { + logger.deprecated("component", { + name: "shell-center-row", + removalVersion: 4, + suggested: "shell-panel", + }); + } + // -------------------------------------------------------------------------- // // Render Methods