diff --git a/explorer/src/components/ConnectKeplrWallet.tsx b/explorer/src/components/ConnectKeplrWallet.tsx
index 3093463c7a..66f8cc1598 100644
--- a/explorer/src/components/ConnectKeplrWallet.tsx
+++ b/explorer/src/components/ConnectKeplrWallet.tsx
@@ -67,7 +67,11 @@ export const ConnectKeplrWallet = () => {
);
}
- return ;
+ return (
+
+ );
};
return {getGlobalbutton()};
diff --git a/explorer/src/components/Delegations/components/ConfirmationModal.tsx b/explorer/src/components/Delegations/ConfirmationModal.tsx
similarity index 100%
rename from explorer/src/components/Delegations/components/ConfirmationModal.tsx
rename to explorer/src/components/Delegations/ConfirmationModal.tsx
diff --git a/explorer/src/components/Delegations/components/DelegateIconButton.tsx b/explorer/src/components/Delegations/DelegateIconButton.tsx
similarity index 63%
rename from explorer/src/components/Delegations/components/DelegateIconButton.tsx
rename to explorer/src/components/Delegations/DelegateIconButton.tsx
index b19a5587d0..80ae730c75 100644
--- a/explorer/src/components/Delegations/components/DelegateIconButton.tsx
+++ b/explorer/src/components/Delegations/DelegateIconButton.tsx
@@ -1,22 +1,23 @@
import * as React from 'react';
import { IconButton, Tooltip } from '@mui/material';
import { SxProps } from '@mui/system';
-import { DelegateIcon } from '../../../icons/DelevateSVG';
+import { DelegateIcon } from '../../icons/DelevateSVG';
export const DelegateIconButton: FCWithChildren<{
+ size?: 'small' | 'medium';
disabled?: boolean;
tooltip?: React.ReactNode;
sx?: SxProps;
onDelegate: () => void;
-}> = ({ tooltip, onDelegate, sx, disabled }) => {
+}> = ({ tooltip, onDelegate, sx, disabled, size = 'medium' }) => {
const handleOnDelegate = (e: React.MouseEvent) => {
e.stopPropagation();
onDelegate();
};
return (
-
-
+
+
);
diff --git a/explorer/src/components/Delegations/components/DelegateModal.tsx b/explorer/src/components/Delegations/DelegateModal.tsx
similarity index 98%
rename from explorer/src/components/Delegations/components/DelegateModal.tsx
rename to explorer/src/components/Delegations/DelegateModal.tsx
index d0df90ab13..c2b0da2e0a 100644
--- a/explorer/src/components/Delegations/components/DelegateModal.tsx
+++ b/explorer/src/components/Delegations/DelegateModal.tsx
@@ -7,8 +7,8 @@ import { useChain } from '@cosmos-kit/react';
import { SimpleModal } from './SimpleModal';
import { ModalListItem } from './ModalListItem';
import { DelegationModalProps } from './DelegationModal';
-import { unymToNym, validateAmount } from '../../../utils/currency';
-import { urls } from '../../../utils';
+import { unymToNym, validateAmount } from '../../utils/currency';
+import { urls } from '../../utils';
const MIN_AMOUNT_TO_DELEGATE = 10;
const MIXNET_CONTRACT_ADDRESS = 'n17srjznxl9dvzdkpwpw24gg668wc73val88a6m5ajg6ankwvz9wtst0cznr';
diff --git a/explorer/src/components/Delegations/components/DelegationModal.tsx b/explorer/src/components/Delegations/DelegationModal.tsx
similarity index 100%
rename from explorer/src/components/Delegations/components/DelegationModal.tsx
rename to explorer/src/components/Delegations/DelegationModal.tsx
diff --git a/explorer/src/components/Delegations/components/ErrorModal.tsx b/explorer/src/components/Delegations/ErrorModal.tsx
similarity index 100%
rename from explorer/src/components/Delegations/components/ErrorModal.tsx
rename to explorer/src/components/Delegations/ErrorModal.tsx
diff --git a/explorer/src/components/Delegations/components/LoadingModal.tsx b/explorer/src/components/Delegations/LoadingModal.tsx
similarity index 100%
rename from explorer/src/components/Delegations/components/LoadingModal.tsx
rename to explorer/src/components/Delegations/LoadingModal.tsx
diff --git a/explorer/src/components/Delegations/components/ModalDivider.tsx b/explorer/src/components/Delegations/ModalDivider.tsx
similarity index 100%
rename from explorer/src/components/Delegations/components/ModalDivider.tsx
rename to explorer/src/components/Delegations/ModalDivider.tsx
diff --git a/explorer/src/components/Delegations/components/ModalListItem.tsx b/explorer/src/components/Delegations/ModalListItem.tsx
similarity index 100%
rename from explorer/src/components/Delegations/components/ModalListItem.tsx
rename to explorer/src/components/Delegations/ModalListItem.tsx
diff --git a/explorer/src/components/Delegations/components/SimpleModal.tsx b/explorer/src/components/Delegations/SimpleModal.tsx
similarity index 98%
rename from explorer/src/components/Delegations/components/SimpleModal.tsx
rename to explorer/src/components/Delegations/SimpleModal.tsx
index 76e3b1751d..88dff4d9d7 100644
--- a/explorer/src/components/Delegations/components/SimpleModal.tsx
+++ b/explorer/src/components/Delegations/SimpleModal.tsx
@@ -4,7 +4,7 @@ import CloseIcon from '@mui/icons-material/Close';
import ErrorOutline from '@mui/icons-material/ErrorOutline';
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew';
-import { useIsMobile } from '../../../hooks/useIsMobile';
+import { useIsMobile } from '../../hooks/useIsMobile';
export const modalStyle = (width: number | string = 600) => ({
position: 'absolute' as 'absolute',
diff --git a/explorer/src/components/Delegations/index.ts b/explorer/src/components/Delegations/index.ts
new file mode 100644
index 0000000000..da51de9bd9
--- /dev/null
+++ b/explorer/src/components/Delegations/index.ts
@@ -0,0 +1,10 @@
+export * from './ConfirmationModal';
+export * from './DelegateIconButton';
+export * from './DelegationModal';
+export * from './DelegateModal';
+export * from './ErrorModal';
+export * from './LoadingModal';
+export * from './ModalDivider';
+export * from './ModalListItem';
+export * from './SimpleModal';
+export * from './styles';
diff --git a/explorer/src/components/Delegations/components/styles.ts b/explorer/src/components/Delegations/styles.ts
similarity index 100%
rename from explorer/src/components/Delegations/components/styles.ts
rename to explorer/src/components/Delegations/styles.ts
diff --git a/explorer/src/components/Filters/Filters.tsx b/explorer/src/components/Filters/Filters.tsx
index a01d64361e..0823ef6579 100644
--- a/explorer/src/components/Filters/Filters.tsx
+++ b/explorer/src/components/Filters/Filters.tsx
@@ -1,5 +1,4 @@
import React, { useState, useEffect, useRef, useCallback } from 'react';
-import { Tune } from '@mui/icons-material';
import {
Button,
Dialog,
@@ -20,6 +19,7 @@ import { EnumFilterKey, TFilterItem, TFilters } from '../../typeDefs/filters';
import { formatOnSave, generateFilterSchema } from './filterSchema';
import { Api } from '../../api';
import { useIsMobile } from '../../hooks/useIsMobile';
+import FiltersButton from './FiltersButton';
const FilterItem = ({
label,
@@ -150,15 +150,7 @@ export const Filters = () => {
{mixnodes?.data?.length} mixnodes matched your criteria
- }
- onClick={handleToggleShowFilters}
- sx={{ textTransform: 'none', width: isMobile ? '100%' : 'inherit' }}
- >
- Advanced filters
-
+