mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
adding wallet connection info message
This commit is contained in:
parent
abcb0ab44c
commit
22c7302062
@ -25,9 +25,18 @@ export default function Permission({
|
||||
if (data === true) {
|
||||
return <>{children}</>
|
||||
} else if (data === false) {
|
||||
const message = `Sorry, you don't have permission to ${eventType}. Please make sure you are logged in.`
|
||||
const message = `Sorry, you don't have permission to ${eventType}. Please make sure you have connected your registered address.`
|
||||
return <Alert title="Permission denied" text={message} state="error" />
|
||||
} else {
|
||||
return <Loader />
|
||||
return (
|
||||
<>
|
||||
<Alert
|
||||
text="Please make sure your wallet is connected to proceed."
|
||||
state="info"
|
||||
/>
|
||||
<br />
|
||||
<Loader />
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user