Skip to content

Commit

Permalink
chore(shell-center-row): ensure deprecation warning doesn’t show when…
Browse files Browse the repository at this point in the history
… using standalone shell
  • Loading branch information
jcfranco committed Oct 18, 2024
1 parent d7b78ca commit 702b800
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 702b800

Please sign in to comment.