Skip to content

Commit

Permalink
Replace BTS name with price checker
Browse files Browse the repository at this point in the history
  • Loading branch information
keybraker committed Dec 3, 2023
1 parent 010b48b commit 6cc5316
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { retrieveLanguage } from "./retrievers/languageRetriever";
import { retrieveVisibility } from "./retrievers/visibilityRetriever";
import { State } from "./types/State";
import { BlockIndicator } from "./decorators/BlockIndicator";
import { BTSIndicator } from "./decorators/BTSIndicator";
import { PriceCheckerIndicator } from "./decorators/PriceCheckerIndicator";

const state: State = {
visible: true,
Expand All @@ -26,7 +26,7 @@ const sponsoredProductListHandler = new SponsoredProductListHandler(state);
const sponsoredFBTHandler = new SponsoredFBTHandler(state);

const blockIndicator = new BlockIndicator(state);
const btsIndicator = new BTSIndicator(state);
const btsIndicator = new PriceCheckerIndicator(state);

(function () {
async function initializer() {
Expand Down
2 changes: 1 addition & 1 deletion src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ text-black {
color: red !important;
}

.bts-outline {
.price-checker-outline {
border: 1px solid var(--color-border-neutral-default) !important;
border-radius: 16px !important;
padding: 20px 24px !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface LowestPriceData {
unformatted: number;
}

export class BTSIndicator {
export class PriceCheckerIndicator {
private state: State;
private btsPrice: number | undefined = undefined;
private lowestPriceData: LowestPriceData | undefined = undefined;
Expand Down Expand Up @@ -126,7 +126,7 @@ export class BTSIndicator {
? "info-label-positive"
: "info-label-negative";

priceIndication.classList.add("display-padding", "inline-flex-row", "bts-outline", status);
priceIndication.classList.add("display-padding", "inline-flex-row", "price-checker-outline", status);
colFlex.classList.add("inline-flex-col");

const icon = document.createElement("div");
Expand Down

0 comments on commit 6cc5316

Please sign in to comment.