Skip to content

Commit

Permalink
fix: update light theme input
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanNeiverth committed Sep 23, 2024
1 parent 8f58a24 commit d3f11cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/claim-vesting/src/app/ClaimVestingApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function ClaimVestingApp() {
<ContentWrapper>
<Row>
<LabelContainer label="Place vesting contract address" />
<Input placeholder="0xabc..." />
<Input theme={theme} placeholder="0xabc..." />
</Row>
<Row>
<ClaimableAmountContainer>
Expand Down
9 changes: 7 additions & 2 deletions apps/claim-vesting/src/components.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import type { ReactNode } from "react";
import clsx from "clsx";

// import ICON_CHECKMARK from "@cowprotocol/assets/cow-swap/checkmark.svg";
// import ICON_ARROW_DOWN from "@cowprotocol/assets/images/carret-down.svg";
Expand Down Expand Up @@ -36,9 +37,13 @@ export const ContentWrapper = ({
</div>
);

export const Input = ({ ...props }) => (
export const Input = ({ theme, ...props }: { theme: string }) => (
<input
className="w-full mt-0 p-2.5 rounded-xl outline-none text-color-text-paper border border-color-border bg-color-paper-darker focus:border-primary"
className={clsx(
"w-full mt-0 p-2.5 rounded-xl outline-none text-color-text-paper border-2 border-color-border focus:border-primary",
{ "bg-color-paper-darker": theme === "dark" },
{ "bg-color-paper": theme === "light" }
)}
{...props}
/>
);
Expand Down

0 comments on commit d3f11cd

Please sign in to comment.