This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Tab structure * Plugin info tab changes * Fix tab padding issue * Fix button colors and text scheme * Transaction card changes * Plugin footer changes * Settings tab changes * Compiler version changes * Indentation formatting changes * Move solidity allowed version fetch to compiler version component * Rename compiler version to header * Fix margin padding issue for compiler accordian * Fix Dropdown item width issue * Change TxId to TxnHash * Accordian shadow and button margin css changes * Add gap in Environment text
- Loading branch information
1 parent
82ce4a7
commit c9928d7
Showing
29 changed files
with
909 additions
and
748 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 +1,12 @@ | ||
body { | ||
font: 1rem; | ||
} | ||
.shell { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100vh; | ||
} | ||
|
||
.solidity-version-legend { | ||
margin: 0 24px; | ||
margin: 0 24px; | ||
} |
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
Empty file.
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,49 @@ | ||
import React from 'react' | ||
import { BsChevronDown } from 'react-icons/bs' | ||
import { useAtom, useAtomValue } from 'jotai' | ||
import { solidityVersionAtom, versionsAtom } from '@/atoms' | ||
import * as Dropdown from '@/ui_components/Dropdown' | ||
import './settings.css' | ||
|
||
export const Settings = () => { | ||
const [solidityVersion, setSolidityVersion] = useAtom(solidityVersionAtom) | ||
const versions = useAtomValue(versionsAtom) | ||
|
||
return ( | ||
<div className="settings-wrapper"> | ||
<div className="text-center font-bold w-full">Settings</div> | ||
<div className={'settings-box'}> | ||
<div className={'settings-box-header'}>zksolc Version</div> | ||
<div className={'blank'}></div> | ||
<div className={'settings-box-content'}> | ||
<div> | ||
<Dropdown.Root> | ||
<Dropdown.Trigger> | ||
<label className="flex p-2 border gap-2"> | ||
zksolc-{solidityVersion} | ||
<BsChevronDown /> | ||
</label> | ||
</Dropdown.Trigger> | ||
<Dropdown.Portal> | ||
<Dropdown.Content> | ||
{versions.map((v, i) => { | ||
return ( | ||
<Dropdown.Item | ||
key={i} | ||
onClick={() => { | ||
setSolidityVersion(v) | ||
}} | ||
> | ||
{v} | ||
</Dropdown.Item> | ||
) | ||
})} | ||
</Dropdown.Content> | ||
</Dropdown.Portal> | ||
</Dropdown.Root> | ||
</div> | ||
</div> | ||
</div> | ||
</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,36 @@ | ||
.settings-wrapper { | ||
padding: 16px; | ||
margin: 0; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
gap: 16px; | ||
} | ||
|
||
.settings-box { | ||
display: grid; | ||
grid-template-columns: 3fr 1fr 4fr; | ||
|
||
align-items: center; | ||
font-size: 14px; | ||
|
||
border-bottom: 1px solid var(--light); | ||
|
||
padding: 8px; | ||
|
||
width: 100%; | ||
} | ||
|
||
.settings-box-header { | ||
font-weight: bold; | ||
} | ||
|
||
.settings-box-content { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
font-size: 12px; | ||
|
||
width: 100%; | ||
} |
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 was deleted.
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
Oops, something went wrong.