1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-11 10:10:25 +01:00

[PM-10731] Move vault icons (#10453)

* move NoFolders icon to vault library

* move DeactivatedOrg icon to vault library

* move Vault icon to vault library

* move NoResults icon to vault library

* clean up barrel file

* Revert "move NoResults icon to vault library"

This reverts commit 43abd45db7.

* re-export no results
This commit is contained in:
Nick Krantz 2024-08-12 08:38:11 -05:00 committed by GitHub
parent b3fb3f7094
commit 0b5afa6252
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 13 additions and 10 deletions

View File

@ -8,6 +8,7 @@ import { JslibModule } from "@bitwarden/angular/jslib.module";
import { CollectionId, OrganizationId } from "@bitwarden/common/types/guid";
import { CipherType } from "@bitwarden/common/vault/enums";
import { ButtonModule, Icons, NoItemsModule } from "@bitwarden/components";
import { VaultIcons } from "@bitwarden/vault";
import { CurrentAccountComponent } from "../../../../auth/popup/account-switching/current-account.component";
import { PopOutComponent } from "../../../../platform/popup/components/pop-out.component";
@ -73,8 +74,8 @@ export class VaultV2Component implements OnInit, OnDestroy {
/** Visual state of the vault */
protected vaultState: VaultState | null = null;
protected vaultIcon = Icons.Vault;
protected deactivatedIcon = Icons.DeactivatedOrg;
protected vaultIcon = VaultIcons.Vault;
protected deactivatedIcon = VaultIcons.DeactivatedOrg;
protected noResultsIcon = Icons.NoResults;
protected VaultStateEnum = VaultState;

View File

@ -10,8 +10,8 @@ import {
ButtonModule,
DialogService,
IconButtonModule,
Icons,
} from "@bitwarden/components";
import { VaultIcons } from "@bitwarden/vault";
import { ItemGroupComponent } from "../../../../../../libs/components/src/item/item-group.component";
import { ItemModule } from "../../../../../../libs/components/src/item/item.module";
@ -46,7 +46,7 @@ import { NewItemDropdownV2Component } from "../components/vault-v2/new-item-drop
export class FoldersV2Component {
folders$: Observable<FolderView[]>;
NoFoldersIcon = Icons.NoFolders;
NoFoldersIcon = VaultIcons.NoFolders;
constructor(
private folderService: FolderService,

View File

@ -1,6 +1,3 @@
export * from "./deactivated-org";
export * from "./search";
export * from "./no-access";
export * from "./vault";
export * from "./no-results";
export * from "./no-folders";

View File

@ -1,4 +1,4 @@
import { svgIcon } from "../icon";
import { svgIcon } from "@bitwarden/components";
export const DeactivatedOrg = svgIcon`
<svg width="138" height="118" viewBox="0 0 138 118" fill="none" xmlns="http://www.w3.org/2000/svg">

View File

@ -0,0 +1,3 @@
export * from "./deactivated-org";
export * from "./no-folders";
export * from "./vault";

View File

@ -1,4 +1,4 @@
import { svgIcon } from "../icon";
import { svgIcon } from "@bitwarden/components";
export const NoFolders = svgIcon`
<svg width="147" height="91" viewBox="0 0 147 91" fill="none" xmlns="http://www.w3.org/2000/svg">

View File

@ -1,4 +1,4 @@
import { svgIcon } from "../icon";
import { svgIcon } from "@bitwarden/components";
export const Vault = svgIcon`
<svg fill="none" width="100" height="90" viewBox="0 0 100 90" xmlns="http://www.w3.org/2000/svg">

View File

@ -12,3 +12,5 @@ export {
} from "./components/assign-collections.component";
export { DownloadAttachmentComponent } from "./components/download-attachment/download-attachment.component";
export * as VaultIcons from "./icons";