-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: modified progress bar, modified fontweights
- Loading branch information
1 parent
48b242a
commit 14e3fab
Showing
31 changed files
with
195 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/app/components/mint-unmint/components/transaction-form/components/transaction-input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { HStack, Image, Input, Text, VStack } from "@chakra-ui/react"; | ||
import { Field } from "formik"; | ||
import { | ||
TransactionFormValues, | ||
blockchainFormPropertyMap, | ||
} from "../transaction-form"; | ||
|
||
interface TransactionInputProps { | ||
blockchain: "ethereum" | "bitcoin"; | ||
values: TransactionFormValues; | ||
} | ||
|
||
export function TransactionInput({ | ||
blockchain, | ||
values, | ||
}: TransactionInputProps): React.JSX.Element { | ||
return ( | ||
<VStack | ||
alignItems={"start"} | ||
py={"5px"} | ||
px={"15px"} | ||
w={"100%"} | ||
bgColor={"white.01"} | ||
border={"2.5px solid"} | ||
borderRadius={"md"} | ||
borderColor={"border.cyan.01"} | ||
> | ||
<HStack> | ||
<Image | ||
src={blockchainFormPropertyMap[blockchain].logo} | ||
alt={blockchainFormPropertyMap[blockchain].alt} | ||
boxSize={"20px"} | ||
/> | ||
<Field | ||
autoFocus | ||
name="amount" | ||
as={Input} | ||
type="number" | ||
px={"1.5px"} | ||
h={"25px"} | ||
w={"75px"} | ||
focusBorderColor="rgba(7,232,216,1)" | ||
fontSize={"xl"} | ||
fontWeight={800} | ||
validate={blockchainFormPropertyMap[blockchain].validateFn} | ||
/> | ||
<Text fontSize={"xl"}>dlcBTC</Text> | ||
</HStack> | ||
<Text pl={"30px"} color={"gray"} fontSize={"sm"}> | ||
= ~{(values.amount * 36131.1).toFixed(4)}$ | ||
</Text> | ||
</VStack> | ||
); | ||
} |
21 changes: 14 additions & 7 deletions
21
src/app/components/mint-unmint/components/transaction-form/components/warning.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.