1
0
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:
Jamie Hewitt 2021-06-04 13:03:16 +03:00
parent abcb0ab44c
commit 22c7302062

View File

@ -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 />
</>
)
}
}