Skip to content

Commit 7bfd5e2

Browse files
committed
chore(styling): address comments on the PR
1 parent 9f9843f commit 7bfd5e2

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/pages/dapps.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ const Option = (
140140
return (
141141
<Button
142142
variant="outline"
143-
className={`my-2 flex w-full items-center justify-center rounded-4xl border px-6 py-4 transition-none lg:mx-2 lg:w-auto lg:justify-start ${
144-
props.isActive
145-
? "border-primary text-primary shadow-table-box"
146-
: "border-body text-body"
147-
} hover:border-primary hover:text-primary active:bg-transparent`}
143+
className={cn(
144+
`my-2 flex w-full items-center justify-center rounded-4xl border px-6 py-4 transition-none lg:mx-2 lg:w-auto lg:justify-start ${
145+
props.isActive
146+
? "border-primary text-primary shadow-table-box"
147+
: "border-body text-body"
148+
} hover:border-primary hover:text-primary active:bg-transparent`
149+
)}
148150
{...props}
149151
/>
150152
)
@@ -158,11 +160,11 @@ const OptionText = (props: ChildOnlyProp) => (
158160
)
159161

160162
const ButtonPrimary = (props: Pick<ButtonProps, "children" | "onClick">) => (
161-
<Button className="rounded px-3 py-2" {...props} />
163+
<Button {...props} />
162164
)
163165

164166
const ButtonSecondary = (props: Pick<ButtonProps, "children" | "onClick">) => (
165-
<Button variant="outline" className="rounded px-3 py-2" {...props} />
167+
<Button variant="outline" {...props} />
166168
)
167169

168170
const ImageContainer = (props: Pick<FlexProps, "children" | "id">) => (
@@ -228,7 +230,7 @@ const FullWidthContainer = (
228230
props: ChildOnlyProp & { ref: React.RefObject<HTMLDivElement> }
229231
) => (
230232
<Page
231-
className="m-0 mb-16 border-t border-border bg-background-highlight pb-8 pt-16"
233+
className="m-0 mb-16 border-t bg-background-highlight pb-8 pt-16"
232234
{...props}
233235
/>
234236
)
@@ -246,7 +248,7 @@ const StepBoxContainer = (props: ChildOnlyProp) => (
246248

247249
const StepBox = (props: ComponentPropsWithRef<typeof BaseLink>) => (
248250
<BaseLink
249-
className="flex w-full flex-col items-start justify-between border border-border px-8 pb-8 pt-0 no-underline transition-transform duration-200 hover:scale-105 hover:bg-background md:flex-row md:items-center md:pb-0"
251+
className="flex w-full flex-col items-start justify-between border px-8 pb-8 pt-0 text-body no-underline transition-transform duration-200 hover:scale-105 hover:bg-background-highlight md:flex-row md:items-center md:pb-0"
250252
{...props}
251253
/>
252254
)

0 commit comments

Comments
 (0)