This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
187 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
echo "VERSION=1.8.7" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
echo "VERSION=1.8.8" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
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,3 +1,3 @@ | ||
#!/bin/bash | ||
VERSION="1.8.7" | ||
VERSION="1.8.8" | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import Modal from "react-modal"; | ||
import React, { useEffect, useState } from "react"; | ||
import cstyles from "./Common.module.css"; | ||
import { WalletSettings } from "./AppState"; | ||
|
||
type ModalProps = { | ||
walletSettings: WalletSettings; | ||
modalIsOpen: boolean; | ||
closeModal: () => void; | ||
setWalletSpamFilterThreshold: (threshold: number) => void; | ||
}; | ||
|
||
export default function WalletSettingsModal({ | ||
walletSettings, | ||
modalIsOpen, | ||
closeModal, | ||
setWalletSpamFilterThreshold, | ||
}: ModalProps) { | ||
const [selected, setSelected] = useState(""); | ||
|
||
useEffect(() => { | ||
if (walletSettings.spam_filter_threshold <= 0) { | ||
setSelected("no_filter"); | ||
} else { | ||
setSelected("filter"); | ||
} | ||
}, [walletSettings]); | ||
|
||
return ( | ||
<Modal | ||
isOpen={modalIsOpen} | ||
onRequestClose={closeModal} | ||
className={cstyles.modal} | ||
overlayClassName={cstyles.modalOverlay} | ||
> | ||
<div className={[cstyles.verticalflex].join(" ")}> | ||
<div className={cstyles.marginbottomlarge} style={{ textAlign: "left", marginLeft: 10 }}> | ||
Filter out Spam Transactions | ||
</div> | ||
|
||
<div className={[cstyles.well, cstyles.verticalflex].join(" ")}> | ||
<div style={{ margin: "10px" }}> | ||
<input | ||
type="radio" | ||
name="filter" | ||
defaultChecked={selected === "filter"} | ||
value="filter" | ||
onClick={(e) => setWalletSpamFilterThreshold(50)} | ||
/> | ||
Don't scan spammy transactions | ||
</div> | ||
|
||
<div style={{ margin: "10px" }}> | ||
<input | ||
type="radio" | ||
name="filter" | ||
value="no_filter" | ||
defaultChecked={selected === "no_filter"} | ||
onClick={(e) => setWalletSpamFilterThreshold(0)} | ||
/> | ||
Scan all transactions | ||
</div> | ||
</div> | ||
|
||
<div className={cstyles.buttoncontainer}> | ||
<button type="button" className={cstyles.primarybutton} onClick={closeModal}> | ||
Save | ||
</button> | ||
<button type="button" className={cstyles.primarybutton} onClick={closeModal}> | ||
Close | ||
</button> | ||
</div> | ||
</div> | ||
</Modal> | ||
); | ||
} |
Oops, something went wrong.