-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Governance walletconnect v2, geofencing modal, and style fixes #402
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c008be9
Upgrade governance walletconnect, geofence, and style updates
smitch88 b7973f0
Fix build
smitch88 aac4348
Set node version
smitch88 7fa1dfb
Update env
smitch88 c3523ab
Update build yaml
smitch88 f293a54
Remove old deps
smitch88 f066203
Fix signer
smitch88 d82986a
Remove Argent from supported wallets
micahalcorn 7f69022
Address PR feedback
smitch88 636e4b5
PR adjustments
smitch88 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import { useState } from "react"; | ||
import useLocalStorage from "utils/useLocalStorage"; | ||
import classnames from "classnames"; | ||
|
||
const GeoFenceCheck = () => { | ||
const { data: hasConfirmedGeoLocation, onSetItem } = useLocalStorage( | ||
"@originprotocol/governance-geo-check", | ||
false | ||
); | ||
|
||
const [isChecked, setIsChecked] = useState(false); | ||
|
||
const onAckGeoFence = () => { | ||
onSetItem(true); | ||
}; | ||
|
||
return ( | ||
<div | ||
className={classnames("modal mt-0", { | ||
"modal-open": !hasConfirmedGeoLocation, | ||
})} | ||
> | ||
<div className="flex flex-col geofence-modal"> | ||
<header className="header"> | ||
<h1 className="title">Restricted Access</h1> | ||
</header> | ||
<div className="body"> | ||
<p className="info"> | ||
Origin DeFi Governance is not available to restricted jurisdictions. | ||
Before proceeding, please carefully read the following: | ||
</p> | ||
<div className="accept-criteria"> | ||
<ul className="accept-criteria-list"> | ||
<li className="item"> | ||
You confirm that you are not a resident of, citizen of, located | ||
in, incorporated in, or have a registered office in the United | ||
States or any country or region currently currently subject to | ||
sanctions by the United States. | ||
</li> | ||
<li className="item"> | ||
You affirm that you are not a subject of economic or trade | ||
sanctions administered or enforced by any governmental authority | ||
or otherwise designated on any list of prohibited or restricted | ||
parties, including the list maintained by the Office of Foreign | ||
Assets Control of the U.S. Department of the Treasury. | ||
</li> | ||
<li className="item"> | ||
You agree not to use any VPN or other privacy or anonymization | ||
tools or techniques to attempt to circumvent these eligibility | ||
restrictions. | ||
</li> | ||
<li className="item"> | ||
You are lawfully permitted to access this site. You understand | ||
and accept the risks associated with using Origin DeFi | ||
Governance. | ||
</li> | ||
</ul> | ||
</div> | ||
<div className="ack"> | ||
<label className="ack-label"> | ||
<div className="ack-container"> | ||
<input | ||
className="ack-checkbox" | ||
type="checkbox" | ||
checked={isChecked} | ||
onChange={(e) => { | ||
setIsChecked(e.target.checked); | ||
}} | ||
/> | ||
</div> | ||
|
||
<span className="ack-label-text"> | ||
I have read and agree to the above terms{" "} | ||
</span> | ||
</label> | ||
</div> | ||
</div> | ||
<footer className="footer"> | ||
<a className="footer-action" href="https://ousd.com"> | ||
Exit | ||
</a> | ||
<button | ||
className="footer-action" | ||
onClick={onAckGeoFence} | ||
disabled={!isChecked} | ||
> | ||
I agree | ||
</button> | ||
</footer> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default GeoFenceCheck; |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import?