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

Hide unused features #39

Merged
merged 4 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
32 changes: 16 additions & 16 deletions ui/src/pages/Lookup/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ const NetworkRow = ({ address, chainId, status }: NetworkRowProp) => {
View in Sourcify Repository
</a>
</td>
<td className="py-4 pr-4 text-right">
<a
className="underline"
href={generateUrl(URL_TYPE.REMIX, chainId, address, status)}
>
View in Remix
</a>
</td>
{/*<td className="py-4 pr-4 text-right">*/}
svienot marked this conversation as resolved.
Show resolved Hide resolved
{/* <a*/}
{/* className="underline"*/}
{/* href={generateUrl(URL_TYPE.REMIX, chainId, address, status)}*/}
{/* >*/}
{/* View in Remix*/}
{/* </a>*/}
{/*</td>*/}
</tr>
) : (
<div className="border-b hover:bg-gray-100 flex flex-col">
Expand All @@ -181,14 +181,14 @@ const NetworkRow = ({ address, chainId, status }: NetworkRowProp) => {
View in Sourcify Repository
</a>
</div>
<div className="pb-4">
<a
className="underline"
href={generateUrl(URL_TYPE.REMIX, chainId, address, status)}
>
View in Remix
</a>
</div>
{/*<div className="pb-4">*/}
{/* <a*/}
{/* className="underline"*/}
{/* href={generateUrl(URL_TYPE.REMIX, chainId, address, status)}*/}
{/* >*/}
{/* View in Remix*/}
{/* </a>*/}
{/*</div>*/}
</div>
)}
</>
Expand Down
116 changes: 58 additions & 58 deletions ui/src/pages/Verifier/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,64 +75,64 @@ const FileUpload: React.FC<FileUploadProps> = ({
to verify.
</p>
</div>
<div className="flex flex-row flex-wrap gap-3 mt-4 justify-center md:justify-start">
<Button
type={
importMethodSelected === ImportMethods.REMOTE
? "primary"
: "secondary"
}
onClick={() => selectImportMethod(ImportMethods.REMOTE)}
className="text-sm"
>
<>
<AiOutlinePlus className="inline align-middle mr-1" />
Import from remote
</>
</Button>
<Button
type={
importMethodSelected === ImportMethods.GITHUB
? "primary"
: "secondary"
}
onClick={() => selectImportMethod(ImportMethods.GITHUB)}
className="text-sm"
>
<>
<AiOutlineGithub className="inline align-middle mr-1" />
Import from GitHub
</>
</Button>
<Button
type={
importMethodSelected === ImportMethods.CONTRACT
? "primary"
: "secondary"
}
onClick={() => selectImportMethod(ImportMethods.CONTRACT)}
className="text-sm"
>
<>
<AiOutlineFileSearch className="inline align-middle mr-1" />
Import from Contract
</>
</Button>
<Button
type={
importMethodSelected === ImportMethods.SOLIDITY_JSON
? "primary"
: "secondary"
}
onClick={() => selectImportMethod(ImportMethods.SOLIDITY_JSON)}
className="text-sm"
>
<>
<SiSolidity className="inline align-middle mr-1" />
Import from Solidity JSON
</>
</Button>
</div>
{/*<div className="flex flex-row flex-wrap gap-3 mt-4 justify-center md:justify-start">*/}
{/* <Button*/}
{/* type={*/}
{/* importMethodSelected === ImportMethods.REMOTE*/}
{/* ? "primary"*/}
{/* : "secondary"*/}
{/* }*/}
{/* onClick={() => selectImportMethod(ImportMethods.REMOTE)}*/}
{/* className="text-sm"*/}
{/* >*/}
{/* <>*/}
{/* <AiOutlinePlus className="inline align-middle mr-1" />*/}
{/* Import from remote*/}
{/* </>*/}
{/* </Button>*/}
{/* <Button*/}
{/* type={*/}
{/* importMethodSelected === ImportMethods.GITHUB*/}
{/* ? "primary"*/}
{/* : "secondary"*/}
{/* }*/}
{/* onClick={() => selectImportMethod(ImportMethods.GITHUB)}*/}
{/* className="text-sm"*/}
{/* >*/}
{/* <>*/}
{/* <AiOutlineGithub className="inline align-middle mr-1" />*/}
{/* Import from GitHub*/}
{/* </>*/}
{/* </Button>*/}
{/* <Button*/}
{/* type={*/}
{/* importMethodSelected === ImportMethods.CONTRACT*/}
{/* ? "primary"*/}
{/* : "secondary"*/}
{/* }*/}
{/* onClick={() => selectImportMethod(ImportMethods.CONTRACT)}*/}
{/* className="text-sm"*/}
{/* >*/}
{/* <>*/}
{/* <AiOutlineFileSearch className="inline align-middle mr-1" />*/}
{/* Import from Contract*/}
{/* </>*/}
{/* </Button>*/}
{/* <Button*/}
{/* type={*/}
{/* importMethodSelected === ImportMethods.SOLIDITY_JSON*/}
{/* ? "primary"*/}
{/* : "secondary"*/}
{/* }*/}
{/* onClick={() => selectImportMethod(ImportMethods.SOLIDITY_JSON)}*/}
{/* className="text-sm"*/}
{/* >*/}
{/* <>*/}
{/* <SiSolidity className="inline align-middle mr-1" />*/}
{/* Import from Solidity JSON*/}
{/* </>*/}
{/* </Button>*/}
{/*</div>*/}
<div className="flex flex-grow flex-col pb-8">
{importMethodSelected === ImportMethods.REMOTE && (
<div className="mt-4">
Expand Down
Loading