Skip to content

Commit

Permalink
RZ-9714 RZ-9715 Payment form fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ventsislav Visarionov committed Mar 7, 2024
1 parent 0b11ad0 commit 9d64378
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 57 deletions.
38 changes: 11 additions & 27 deletions dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.es.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.umd.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ p {
display: inline;
}

.mt-8 {
margin-top: 2rem;
}

.mb-6 {
margin-bottom: 1.5rem;
}

@layer utilities {
.tw--translate-z-0 * {
transform: translateZ(0);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Link/variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export const basic = /* tw*/ tv({
variants: {
theme: {
light: {
base: 'tw--bg-light-glaze tw--text-white',
base: 'tw--inline-block tw--bg-light-glaze tw--text-white',
},
dark: {
base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText',
base: 'tw--inline-block tw--bg-dark-glazeBg tw--text-dark-glazeText',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Scenes/payment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const PaymentScene = ({ onClose }: { onClose: (e: MouseEvent<HTMLButtonEl
<PaymentLoader texts={translations.loaderTexts} title={translations.tm1224} />
</Overlay>
<CloseButton onClick={onClose} />
<div id="primer-form-container" className="tw--w-full h-full">
<div id="primer-form-container" className="primer-theme tw--w-full h-full">
<PaymentHead config={{ price: displayPlanPrice, period: billingFrequencyTmsg }} />
</div>
<PaymentFooter />
Expand Down
30 changes: 7 additions & 23 deletions src/middleware/intentions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,29 +87,13 @@ export const intentionsMiddleware: Middleware = (store) => (next) => {
store.dispatch(setIsEmailLoading(false));

if (response.status === 409) {
store.dispatch(
addPredefinedAssistantMessage({
content: tm716,
buttons: [
{
sequence: 1,
id: 'opt-1',
text: tm526,
value: 'link',
link: response.data.buttonLink,
noStream: true,
},
{
sequence: 2,
id: 'opt-2',
text: tm715,
value: 'button',
link: '',
noStream: true,
},
],
})
);
store.dispatch(addPredefinedAssistantMessage({
content: tm716,
buttons: [
{ sequence: 1, id: 'opt-1', text: tm526, value: tm526, link: response.data.buttonLink, noStream: true },
{ sequence: 2, id: 'opt-2', text: tm715, value: tm715, link: '', noStream: true }
]
}));

track({
eventType: AllEvents.emailExist,
Expand Down

0 comments on commit 9d64378

Please sign in to comment.