1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-10 00:21:27 +01:00

[PM-5189] Refactoring implementation

This commit is contained in:
Cesar Gonzalez 2024-06-11 15:42:08 -05:00
parent ba74a1cd36
commit 12077a2273
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
3 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authenticatio
import { createInitAutofillInlineMenuButtonMessageMock } from "../../../../spec/autofill-mocks";
import { flushPromises, postWindowMessage } from "../../../../spec/testing-utils";
import AutofillInlineMenuButton from "./autofill-inline-menu-button";
import { AutofillInlineMenuButton } from "./autofill-inline-menu-button";
describe("AutofillInlineMenuButton", () => {
globalThis.customElements.define("autofill-inline-menu-button", AutofillInlineMenuButton);

View File

@ -12,7 +12,7 @@ import {
} from "../../abstractions/autofill-inline-menu-button";
import { AutofillInlineMenuPageElement } from "../shared/autofill-inline-menu-page-element";
class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
export class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
private authStatus: AuthenticationStatus = AuthenticationStatus.LoggedOut;
private readonly buttonElement: HTMLButtonElement;
private readonly logoIconElement: HTMLElement;
@ -124,5 +124,3 @@ class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
this.postMessageToParent({ command: "triggerDelayedAutofillInlineMenuClosure" });
}
}
export default AutofillInlineMenuButton;

View File

@ -1,6 +1,6 @@
import { AutofillOverlayElement } from "../../../../enums/autofill-overlay.enum";
import AutofillInlineMenuButton from "./autofill-inline-menu-button";
import { AutofillInlineMenuButton } from "./autofill-inline-menu-button";
require("./button.scss");