Skip to content

Commit c6a3fed

Browse files
authored
chore: new rules for customization (#936)
1 parent 8b39fc9 commit c6a3fed

File tree

5 files changed

+124
-69
lines changed

5 files changed

+124
-69
lines changed

public/icons/orca.svg

Lines changed: 107 additions & 55 deletions
Loading

src/Components/InfoElement.res

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ let make = () => {
33
let {themeObj, localeString} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom)
44
let selectedOption =
55
Recoil.useRecoilValueFromAtom(RecoilAtoms.selectedOptionAtom)->PaymentModeType.paymentMode
6-
<div className="flex flex-row w-full pr-3 gap-3" style={color: themeObj.colorText}>
6+
<div
7+
className="InfoElement flex flex-row w-full pr-3 gap-3"
8+
style={
9+
color: themeObj.colorText,
10+
fontSize: themeObj.fontSizeLg,
11+
opacity: "60%",
12+
fontWeight: themeObj.fontWeightLight,
13+
}>
714
<div>
815
<Icon name="redirect" size=55 shouldMirrorIcon={localeString.localeDirection === "rtl"} />
916
</div>
10-
<div
11-
className="self-center"
12-
style={
13-
fontSize: themeObj.fontSizeLg,
14-
opacity: "60%",
15-
fontWeight: themeObj.fontWeightLight,
16-
}>
17+
<div className="self-center">
1718
{switch selectedOption {
1819
| ACHTransfer
1920
| BacsTransfer

src/Components/Or.res

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ let make = () => {
33
let {localeString} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom)
44
<div className="w-full w-max-[750px] relative flex flex-row my-4 " ariaHidden=true>
55
<div className="relative top-[50%] h-[1px] bg-gray-400 w-full self-center" />
6-
<div className="relative min-w-fit px-5 text-sm text-gray-400 flex justify-center">
6+
<div
7+
className="OrPayUsingLabel relative min-w-fit px-5 text-sm text-gray-400 flex justify-center">
78
{React.string(localeString.orPayUsing)}
89
</div>
910
<div className="relative top-[50%] h-[1px] bg-gray-400 w-full self-center" />

src/Components/Terms.res

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ let make = (~mode: PaymentModeType.payment) => {
1818
let (termsText, showTerm) = terms
1919

2020
<RenderIf condition={showTerm == Auto || showTerm == Always}>
21-
<div className="opacity-50 text-xs mb-2 text-left" style={color: themeObj.colorText}>
21+
<div
22+
className="TermsTextLabel opacity-50 text-xs mb-2 text-left"
23+
style={color: themeObj.colorText}>
2224
{React.string(termsText)}
2325
</div>
2426
</RenderIf>

0 commit comments

Comments
 (0)