mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Apply suggestions from code review
Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>
This commit is contained in:
parent
a9b4117b1b
commit
19c37ab91c
@ -1,4 +1,4 @@
|
||||
import { HomeAssistant } from "../../../types";
|
||||
import type { HomeAssistant } from "../../../types";
|
||||
import { Lovelace } from "../types";
|
||||
import { deleteBadge } from "./config-util";
|
||||
import { LovelaceCardPath } from "./lovelace-path";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { HomeAssistant } from "../../../types";
|
||||
import { Lovelace } from "../types";
|
||||
import { deleteCard } from "./config-util";
|
||||
import { LovelaceCardPath } from "./lovelace-path";
|
||||
import type { LovelaceCardPath } from "./lovelace-path";
|
||||
|
||||
export type DeleteCardParams = { path: LovelaceCardPath; silent: boolean };
|
||||
|
||||
|
@ -23,7 +23,7 @@ import { fetchResources } from "../../data/lovelace/resource";
|
||||
import { WindowWithPreloads } from "../../data/preloads";
|
||||
import "../../layouts/hass-error-screen";
|
||||
import "../../layouts/hass-loading-screen";
|
||||
import { ShowToastParams } from "../../managers/notification-manager";
|
||||
import type { ShowToastParams } from "../../managers/notification-manager";
|
||||
import { HomeAssistant, PanelInfo, Route } from "../../types";
|
||||
import { showToast } from "../../util/toast";
|
||||
import { checkLovelaceConfig } from "./common/check-lovelace-config";
|
||||
|
@ -14,7 +14,7 @@ import { LovelaceHeaderFooterConfig } from "./header-footer/types";
|
||||
import { LovelaceCardFeatureConfig } from "./card-features/types";
|
||||
import { LovelaceElement, LovelaceElementConfig } from "./elements/types";
|
||||
import { LovelaceHeadingBadgeConfig } from "./heading-badges/types";
|
||||
import { ShowToastParams } from "../../managers/notification-manager";
|
||||
import type { ShowToastParams } from "../../managers/notification-manager";
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line
|
||||
|
@ -25,8 +25,8 @@ import { showCreateBadgeDialog } from "../editor/badge-editor/show-create-badge-
|
||||
import { showEditBadgeDialog } from "../editor/badge-editor/show-edit-badge-dialog";
|
||||
import { showCreateCardDialog } from "../editor/card-editor/show-create-card-dialog";
|
||||
import { showEditCardDialog } from "../editor/card-editor/show-edit-card-dialog";
|
||||
import { DeleteBadgeParams, performDeleteBadge } from "../editor/delete-badge";
|
||||
import { DeleteCardParams, performDeleteCard } from "../editor/delete-card";
|
||||
import { type DeleteBadgeParams, performDeleteBadge } from "../editor/delete-badge";
|
||||
import { type DeleteCardParams, performDeleteCard } from "../editor/delete-card";
|
||||
import {
|
||||
LovelaceCardPath,
|
||||
parseLovelaceCardPath,
|
||||
|
Loading…
x
Reference in New Issue
Block a user