-
Notifications
You must be signed in to change notification settings - Fork 3
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
=
committed
Nov 2, 2021
1 parent
2307d89
commit eb535b5
Showing
1,634 changed files
with
5,612 additions
and
47,502 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
import DateFnsUtils from "@date-io/date-fns"; | ||
import { | ||
KeyboardDatePicker, | ||
MuiPickersUtilsProvider, | ||
} from "@material-ui/pickers"; | ||
import "./style.scss"; | ||
|
||
export default function BasicDatePicker({ value, onChange }) { | ||
return ( | ||
<div className="basic-calendar"> | ||
<MuiPickersUtilsProvider utils={DateFnsUtils}> | ||
<KeyboardDatePicker | ||
disableToolbar | ||
variant="inline" | ||
format="MM/dd/yyyy" | ||
margin="normal" | ||
label="" | ||
value={value || null} | ||
onChange={onChange} | ||
KeyboardButtonProps={{ | ||
"aria-label": "change date", | ||
}} | ||
/> | ||
</MuiPickersUtilsProvider> | ||
</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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.basic-calendar { | ||
.MuiInputBase-root { | ||
background: #1F063E; | ||
border: 1px solid #270A4B; | ||
border-radius: 10px; | ||
} | ||
.MuiIconButton-label { | ||
color: white; | ||
} | ||
} | ||
.app.theme-light { | ||
.basic-calendar { | ||
.MuiInputBase-root { | ||
background: white !important; | ||
border: 1px solid rgba(0, 0, 0, 0.1) !important; | ||
} | ||
.MuiInput-input { | ||
border: 0 !important; | ||
} | ||
.MuiIconButton-label { | ||
color: black; | ||
} | ||
} | ||
} | ||
.app.theme-metal { | ||
.basic-calendar { | ||
.MuiInputBase-root { | ||
background: transparent !important; | ||
border: 1px solid #666 !important; | ||
} | ||
.MuiInputBase-input { | ||
border: 0 !important; | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -52,7 +52,7 @@ | |
label { | ||
display: block; | ||
font-size: 10px; | ||
span { | ||
span, a { | ||
color: #9B64E6; | ||
} | ||
} | ||
|
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,44 @@ | ||
import React, { Component } from "react"; | ||
import { connect } from "react-redux"; | ||
import { removeActiveModal } from "../../redux/actions"; | ||
import "./style.scss"; | ||
|
||
const mapStateToProps = (state) => { | ||
return { | ||
authUser: state.global.authUser, | ||
}; | ||
}; | ||
|
||
class ConfirmKYCLink extends Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = {}; | ||
} | ||
|
||
// Hide Modal | ||
hideModal = (e) => { | ||
if (e) e.preventDefault(); | ||
this.props.dispatch(removeActiveModal()); | ||
}; | ||
|
||
// Render Content | ||
render() { | ||
const user = this.props.authUser; | ||
const email = this.props.data?.email || user.email; | ||
return ( | ||
<div id="start-kyc-modal"> | ||
<h2 className="pb-2">A KYC link has been sent to {email}!</h2> | ||
<p className="mt-2 mb-3"> | ||
{`Check your inbox to begin the KYC/AML process. If you do not see the link in a minute check your spam folder.`} | ||
</p> | ||
<div id="start-kyc-modal__buttons" className="pt-2"> | ||
<button className="btn btn-primary" onClick={this.hideModal}> | ||
Close | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default connect(mapStateToProps)(ConfirmKYCLink); |
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,53 @@ | ||
#start-kyc-modal { | ||
width: 762px; | ||
max-width: 100%; | ||
background-color: #ffffff; | ||
border-radius: 12px; | ||
position: relative; | ||
padding: 50px; | ||
margin: 160px auto; | ||
button { | ||
&:disabled { | ||
background: #c7c7c7; | ||
color: white; | ||
border: 2px solid #c7c7c7; | ||
cursor: not-allowed; | ||
} | ||
} | ||
#start-kyc-modal__buttons { | ||
margin-left: -5px; | ||
margin-right: -5px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 20px; | ||
|
||
button { | ||
flex: 0 0 calc(50% - 10px) !important; | ||
width: calc(50% - 10px) !important; | ||
margin: 0 5px !important; | ||
} | ||
} | ||
|
||
@media all and (max-width: 767px) { | ||
margin: 100px auto; | ||
padding: 30px 15px; | ||
|
||
h2 { | ||
margin-top: 50px; | ||
} | ||
|
||
#start-checksystem-modal__buttons { | ||
display: block; | ||
margin-left: 0; | ||
margin-right: 0; | ||
|
||
button { | ||
flex: auto; | ||
width: 100% !important; | ||
display: block !important; | ||
margin: 0 0 20px 0 !important; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.