This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: make CoinInput work with BigNumbers * chore: format files with Prettier * chore: cleanup README * chore: upgrade to React 18 * chore: get rid of not-so-random genBytes32()
- Loading branch information
Showing
31 changed files
with
8,039 additions
and
8,148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
"declarationMap": true | ||
}, | ||
"include": ["./index.ts"] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import NumberFormat from "react-number-format"; | ||
|
||
const style = { | ||
transferPropContainer: `bg-[#20242A] rounded-2xl p-4 text-3xl border border-[#20242A] | ||
transferPropContainer: `bg-[#20242A] rounded-2xl p-4 text-3xl border border-[#20242A] | ||
flex justify-between`, | ||
transferPropInput: `bg-transparent placeholder:text-[#B2B9D2] outline-none w-full text-2xl` | ||
transferPropInput: `bg-transparent placeholder:text-[#B2B9D2] outline-none w-full text-2xl`, | ||
}; | ||
|
||
export function NumberInput({ | ||
value, | ||
onChange, | ||
disabled, | ||
value, | ||
onChange, | ||
disabled, | ||
}: { | ||
disabled?: boolean, | ||
value?: number | string | null; | ||
onChange?: (value: string) => void; | ||
disabled?: boolean; | ||
value?: number | string | null; | ||
onChange?: (value: string) => void; | ||
}) { | ||
return ( | ||
return ( | ||
<div className={style.transferPropContainer}> | ||
<div className="flex-1"> | ||
<NumberFormat | ||
placeholder="0" | ||
value={value} | ||
displayType={disabled ? 'text' : 'input'} | ||
onValueChange={(e) => onChange?.(e.value)} | ||
className={style.transferPropInput} | ||
thousandSeparator={false} | ||
/> | ||
</div> | ||
<div className="flex-1"> | ||
<NumberFormat | ||
placeholder="0" | ||
value={value} | ||
displayType={disabled ? "text" : "input"} | ||
onValueChange={(e) => onChange?.(e.value)} | ||
className={style.transferPropInput} | ||
thousandSeparator={false} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
); | ||
} |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ export const RequireWallet = ({ children }: { children: JSX.Element }) => { | |
} | ||
|
||
return children; | ||
}; | ||
}; |
Oops, something went wrong.