Skip to content
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

docs: include allowed file extensions to upload in ui #157

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions ui/src/pages/Verifier/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import RemoteInput from "./RemoteInput";
import GitHubInput from "./GitHubInput";
import ContractInput from "./ContractInput";
import SolcJsonInput from "./SolcJsonInput";
import {configuration} from "../../utils/Configuration";
import { configuration } from "../../utils/Configuration";

enum ImportMethods {
UPLOAD,
Expand Down Expand Up @@ -73,7 +73,7 @@ const FileUpload: React.FC<FileUploadProps> = ({
<h2 className="font-bold text-xl block">File Add Zone</h2>
<p>
Add the Solidity source files and metadata of all contracts you want
to verify.
to verify (<span className="font-medium">*.sol</span> or <span className="font-medium">*.json</span>).
</p>
</div>
<div className="flex flex-row flex-wrap gap-3 mt-4 justify-center md:justify-start">
Expand All @@ -93,7 +93,7 @@ const FileUpload: React.FC<FileUploadProps> = ({
</>
</Button>
) : (
<div/>
<div />
)}
{configuration.githubImport ? (
<Button
Expand All @@ -106,12 +106,12 @@ const FileUpload: React.FC<FileUploadProps> = ({
className="text-sm"
>
<>
<AiOutlineGithub className="inline align-middle mr-1"/>
<AiOutlineGithub className="inline align-middle mr-1" />
Import from GitHub
</>
</Button>
) : (
<div/>
<div />
)}
{configuration.contractImport ? (
<Button
Expand All @@ -124,12 +124,12 @@ const FileUpload: React.FC<FileUploadProps> = ({
className="text-sm"
>
<>
<AiOutlineFileSearch className="inline align-middle mr-1"/>
<AiOutlineFileSearch className="inline align-middle mr-1" />
Import from Contract
</>
</Button>
) : (
<div/>
<div />
)}
{configuration.jsonImport ? (
<Button
Expand All @@ -142,12 +142,12 @@ const FileUpload: React.FC<FileUploadProps> = ({
className="text-sm"
>
<>
<SiSolidity className="inline align-middle mr-1"/>
<SiSolidity className="inline align-middle mr-1" />
Import from Solidity JSON
</>
</Button>
) : (
<div/>
<div />
)}
</div>
<div className="flex flex-grow flex-col pb-8">
Expand Down
Loading