* refactor: migrate admin icons to @makeplane/propel Replace confirmed icon symbols in apps/admin with their audited @makeplane/propel/icons targets, merging into the imports the six already-migrated files declared. Unresolved symbols (Menu, BrainCog) and the LucideIcon type stay on lucide-react. Lucide size props become explicit width/height. Loader keeps its LoaderIcon alias so the call site is unchanged. apps/admin already declared @makeplane/propel, so no dependency change was needed. * fix: restore Settings breadcrumb label after icon rename The migration's identifier rename also rewrote the string literal, so the breadcrumb displayed the icon component name instead of the label.
37 lines
1.4 KiB
TypeScript
37 lines
1.4 KiB
TypeScript
/**
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
// plane constants
|
|
import type { TAdminAuthErrorInfo } from "@plane/constants";
|
|
// icons
|
|
import { CloseOutline, InfoOutline } from "@makeplane/propel/icons";
|
|
|
|
type TAuthBanner = {
|
|
bannerData: TAdminAuthErrorInfo | undefined;
|
|
handleBannerData?: (bannerData: TAdminAuthErrorInfo | undefined) => void;
|
|
};
|
|
|
|
export function AuthBanner(props: TAuthBanner) {
|
|
const { bannerData, handleBannerData } = props;
|
|
|
|
if (!bannerData) return <></>;
|
|
return (
|
|
<div className="relative flex items-center gap-2 rounded-md border border-accent-strong/50 bg-accent-primary/10 p-2">
|
|
<div className="relative flex h-4 w-4 flex-shrink-0 items-center justify-center">
|
|
<InfoOutline width={16} height={16} className="text-accent-primary" />
|
|
</div>
|
|
<div className="w-full text-13 font-medium text-accent-primary">{bannerData?.message}</div>
|
|
<button
|
|
type="button"
|
|
aria-label="Dismiss banner"
|
|
className="relative ml-auto flex h-6 w-6 cursor-pointer items-center justify-center rounded-xs text-accent-primary transition-all hover:bg-accent-primary/20"
|
|
onClick={() => handleBannerData && handleBannerData(undefined)}
|
|
>
|
|
<CloseOutline className="h-4 w-4 flex-shrink-0" />
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|