mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
[PM-8517] Create web specific layout (#9209)
We currently duplicate some logic between our layouts. In an effort to streamline our experience I'm exploring if we can create a web specific layout that handles some of this.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
export * from "./navigation.module";
|
||||
export * from "./side-nav.service";
|
||||
export type * from "./side-nav.component";
|
||||
|
||||
@@ -2,12 +2,14 @@ import { Component, ElementRef, Input, ViewChild } from "@angular/core";
|
||||
|
||||
import { SideNavService } from "./side-nav.service";
|
||||
|
||||
export type SideNavVariant = "primary" | "secondary";
|
||||
|
||||
@Component({
|
||||
selector: "bit-side-nav",
|
||||
templateUrl: "side-nav.component.html",
|
||||
})
|
||||
export class SideNavComponent {
|
||||
@Input() variant: "primary" | "secondary" = "primary";
|
||||
@Input() variant: SideNavVariant = "primary";
|
||||
|
||||
@ViewChild("toggleButton", { read: ElementRef, static: true })
|
||||
private toggleButton: ElementRef<HTMLButtonElement>;
|
||||
|
||||
Reference in New Issue
Block a user