Skip to content

Commit

Permalink
feat: rename to getResumePixelComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
ravishekhar committed Dec 12, 2024
1 parent 52bd4db commit 3816e69
Show file tree
Hide file tree
Showing 5 changed files with 760 additions and 757 deletions.
6 changes: 3 additions & 3 deletions src/interface/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ import {
getModalComponent,
type ModalComponent,
} from "../zoid/modal/component";
import { getResumeFlowComponent } from "../zoid/resume-flow";
import { getResumePixelComponent } from "../zoid/resume-pixel";

export const Buttons: LazyExport<ButtonsComponent> = {
__get__: () => getButtonsComponent(),
};

export const ResumePixel: LazyExport<ButtonsComponent> = {
__get__: () => getResumeFlowComponent(),
__get__: () => getResumePixelComponent(),
};

export const Checkout: LazyProtectedExport<CheckoutComponent> = {
Expand Down Expand Up @@ -98,7 +98,7 @@ export const destroyAll: LazyProtectedExport<typeof destroyComponents> = {
export function setup() {
getButtonsComponent();
getCheckoutComponent();
getResumeFlowComponent();
getResumePixelComponent();
}

export function destroy(err?: mixed) {
Expand Down
4 changes: 2 additions & 2 deletions src/zoid/buttons/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import {
type ButtonProps,
} from "../../ui/buttons/props";
import { isFundingEligible } from "../../funding";
import { getResumeFlowComponent } from "../resume-flow";
import { getResumePixelComponent } from "../resume-pixel";
import { CLASS } from "../../constants";

import { containerTemplate } from "./container";
Expand Down Expand Up @@ -112,7 +112,7 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
return true;
},
resume: () => {
const resumeComponent = getResumeFlowComponent();
const resumeComponent = getResumePixelComponent();
resumeComponent({ ...parentProps }).render("body");
},
};
Expand Down
Loading

0 comments on commit 3816e69

Please sign in to comment.