mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +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:
parent
b3fb3f7094
commit
0b5afa6252
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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";
|
||||
|
@ -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">
|
3
libs/vault/src/icons/index.ts
Normal file
3
libs/vault/src/icons/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export * from "./deactivated-org";
|
||||
export * from "./no-folders";
|
||||
export * from "./vault";
|
@ -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">
|
@ -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">
|
@ -12,3 +12,5 @@ export {
|
||||
} from "./components/assign-collections.component";
|
||||
|
||||
export { DownloadAttachmentComponent } from "./components/download-attachment/download-attachment.component";
|
||||
|
||||
export * as VaultIcons from "./icons";
|
||||
|
Loading…
Reference in New Issue
Block a user