mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Disconnect button (#293)
* disconnect button Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro> * styling Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
This commit is contained in:
parent
d1523a9065
commit
ff34e263ef
@ -1,5 +1,6 @@
|
|||||||
.details {
|
.details {
|
||||||
padding: calc(var(--spacer) / 4);
|
padding: calc(var(--spacer) / 4);
|
||||||
|
padding-right: calc(var(--spacer) / 2);
|
||||||
min-width: 17rem;
|
min-width: 17rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,9 +28,28 @@
|
|||||||
border-top: 1px solid var(--border-color);
|
border-top: 1px solid var(--border-color);
|
||||||
margin-top: calc(var(--spacer) / 2);
|
margin-top: calc(var(--spacer) / 2);
|
||||||
padding-top: calc(var(--spacer) / 2);
|
padding-top: calc(var(--spacer) / 2);
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
font-size: var(--font-size-small);
|
font-size: var(--font-size-small);
|
||||||
color: var(--color-secondary);
|
color: var(--color-secondary);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actions span {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actions p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actions button,
|
||||||
|
.actions button:hover {
|
||||||
|
display: block;
|
||||||
|
font-size: var(--font-size-mini);
|
||||||
|
margin-top: calc(var(--spacer) / 4);
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actions button:first-child {
|
||||||
|
margin-top: calc(var(--spacer) / 8);
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@ export default function Details(): ReactElement {
|
|||||||
|
|
||||||
<li className={styles.actions}>
|
<li className={styles.actions}>
|
||||||
<span title="Connected provider">{getInjectedProviderName()}</span>
|
<span title="Connected provider">{getInjectedProviderName()}</span>
|
||||||
|
<p>
|
||||||
<Button
|
<Button
|
||||||
style="text"
|
style="text"
|
||||||
size="small"
|
size="small"
|
||||||
@ -37,6 +38,17 @@ export default function Details(): ReactElement {
|
|||||||
>
|
>
|
||||||
Switch Wallet
|
Switch Wallet
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
style="text"
|
||||||
|
size="small"
|
||||||
|
onClick={() => {
|
||||||
|
logout()
|
||||||
|
location.reload()
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Disconnect
|
||||||
|
</Button>
|
||||||
|
</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<Web3Feedback />
|
<Web3Feedback />
|
||||||
|
Loading…
Reference in New Issue
Block a user