Skip to content

Commit

Permalink
fix: dropdown close on click issue
Browse files Browse the repository at this point in the history
  • Loading branch information
devpavan04 committed Aug 10, 2023
1 parent 11a476c commit 23b9693
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/stats-dapp/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const Header: FC<HeaderProps> = ({
</Typography>
</MenuItem>

<MenuItem className="px-4 py-2 hover:bg-mono-0 dark:hover:bg-mono-180">
<div className="px-4 py-2 hover:bg-mono-0 dark:hover:bg-mono-180">
<Typography variant="label" fw="bold">
Advanced
</Typography>
Expand All @@ -117,7 +117,7 @@ export const Header: FC<HeaderProps> = ({
setSelectedNetworkType={setSelectedNetworkType}
/>
</div>
</MenuItem>
</div>
</DropdownBody>
</Dropdown>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const NetworkSelector: FC<NetworkSelectorProps> = ({
rightIcon={
savedEnpoints.customSubqueryEndpoint ? (
<DeleteBinWithBg
className="cursor-pointer"
onClick={() => {
setDefaultEndpointsAsUserSelected();
localStorage.removeItem('customSubqueryEndpoint');
Expand All @@ -181,6 +182,7 @@ export const NetworkSelector: FC<NetworkSelectorProps> = ({
/>
) : customSubqueryEndpoint ? (
<SaveWithBg
className="cursor-pointer"
onClick={async () => {
if (
await isValidSubqueryEndpoint(
Expand Down Expand Up @@ -224,6 +226,7 @@ export const NetworkSelector: FC<NetworkSelectorProps> = ({
rightIcon={
savedEnpoints.customPolkadotEndpoint ? (
<DeleteBinWithBg
className="cursor-pointer"
onClick={() => {
setDefaultEndpointsAsUserSelected();
localStorage.removeItem('customPolkadotEndpoint');
Expand All @@ -236,6 +239,7 @@ export const NetworkSelector: FC<NetworkSelectorProps> = ({
/>
) : customPolkadotEndpoint ? (
<SaveWithBg
className="cursor-pointer"
onClick={async () => {
if (
await isValidPolkadotEndpoint(
Expand Down

0 comments on commit 23b9693

Please sign in to comment.