-
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.
- Loading branch information
Showing
15 changed files
with
242 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
import * as styles from "./index.module.scss"; | ||
|
||
type Props = React.InputHTMLAttributes<HTMLInputElement>; | ||
type Props = React.InputHTMLAttributes<HTMLInputElement> & { | ||
classNameWrapper?: string; | ||
rightText?: string; | ||
}; | ||
|
||
const FormInput = ({ className, ...props }: Props) => ( | ||
<input {...props} className={[styles.input, className].join(" ")} /> | ||
); | ||
const FormInput = ({ className, rightText, ...props }: Props) => { | ||
const input = ( | ||
<input | ||
{...props} | ||
className={[ | ||
styles.input, | ||
rightText ? styles.withText : "", | ||
className, | ||
].join(" ")} | ||
/> | ||
); | ||
|
||
if (!rightText) return input; | ||
|
||
return ( | ||
<span className={styles.wrapper}> | ||
{input} | ||
{!!rightText && <span className={styles.rightText}>{rightText}</span>} | ||
</span> | ||
); | ||
}; | ||
|
||
export default FormInput; |
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,9 +1,20 @@ | ||
import * as styles from "./index.module.scss"; | ||
|
||
type Props = React.ButtonHTMLAttributes<HTMLButtonElement>; | ||
type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & { | ||
pinkShadow?: boolean; | ||
size?: "big" | "normal"; | ||
}; | ||
|
||
const HighlightButton = ({ className, ...props }: Props) => ( | ||
<button {...props} className={[styles.button, className || ""].join(" ")} /> | ||
const HighlightButton = ({ className, pinkShadow, size, ...props }: Props) => ( | ||
<button | ||
{...props} | ||
className={[ | ||
styles.button, | ||
size === "big" ? styles.big : "", | ||
pinkShadow ? styles.pinkShadow : "", | ||
className || "", | ||
].join(" ")} | ||
/> | ||
); | ||
|
||
export default HighlightButton; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
src/screens/staking/components/staking_section/label.module.scss
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,10 @@ | ||
.label { | ||
color: #25282d; | ||
font-size: 16px; | ||
font-weight: 600; | ||
letter-spacing: 0.002em; | ||
line-height: 20px; | ||
margin: 0; | ||
padding: 0; | ||
text-align: left; | ||
} |
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,11 @@ | ||
import type { HTMLAttributes } from "react"; | ||
|
||
import * as styles from "./label.module.scss"; | ||
|
||
type Props = HTMLAttributes<HTMLParagraphElement>; | ||
|
||
const Label = ({ className, ...props }: Props) => ( | ||
<span {...props} className={[styles.label, className || ""].join(" ")} /> | ||
); | ||
|
||
export default Label; |
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
35 changes: 32 additions & 3 deletions
35
src/screens/staking/components/staking_section/staking_modal.module.scss
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,11 +1,40 @@ | ||
.button { | ||
@import "src/styles/sass.scss"; | ||
|
||
.wrapper { | ||
display: flex; | ||
flex: 1; | ||
padding: 12px; | ||
flex-direction: column; | ||
gap: 24px; | ||
|
||
@include up-laptop { | ||
min-width: 500px; | ||
} | ||
} | ||
|
||
.wrapper { | ||
.row { | ||
align-items: center; | ||
display: flex; | ||
flex: 1; | ||
flex-direction: row; | ||
gap: 12px; | ||
justify-content: space-between; | ||
} | ||
|
||
.apy { | ||
align-items: center; | ||
display: flex; | ||
gap: 4px; | ||
justify-content: center; | ||
} | ||
|
||
.group { | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
gap: 12px; | ||
} | ||
|
||
.input { | ||
margin: 0; | ||
width: 100%; | ||
} |
Oops, something went wrong.