Skip to content

Commit

Permalink
add useIsMobile hook and udpate copy (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: tokodev <[email protected]>
  • Loading branch information
technophile-04 and Pabl0cks authored Apr 10, 2024
1 parent 52c0381 commit 5cd6219
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export const ContractReadMethods = ({
if (!functionsToDisplay.length) {
return (
<div className="py-5">
<span className="font-light text-gray-500 my-5">Please select read methods from the sidebar.</span>
<span className="font-light text-gray-500 my-5">
Please select read methods from the <span className="sm:hidden">hamburger menu</span>
<span className="hidden sm:inline">sidebar</span>.
</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export const ContractWriteMethods = ({
if (!functionsToDisplay.length) {
return (
<div className="py-5">
<span className="font-light text-gray-500">Please select write methods from the sidebar.</span>
<span className="font-light text-gray-500">
Please select read methods from the <span className="sm:hidden">hamburger menu</span>
<span className="hidden sm:inline">sidebar</span>.
</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const WriteOnlyFunctionForm = ({
wrongNetwork &&
"tooltip before:content-[attr(data-tip)] before:right-[-10px] before:left-auto before:transform-none"
}`}
data-tip={`${wrongNetwork && "Wrong netowrk"}`}
data-tip={`${wrongNetwork && "Wrong network"}`}
>
<button className="btn btn-secondary btn-sm" disabled={wrongNetwork || isLoading} onClick={handleWrite}>
{isLoading && <span className="loading loading-spinner loading-xs"></span>}
Expand Down

0 comments on commit 5cd6219

Please sign in to comment.