Skip to content

Commit

Permalink
feat: liquidations assets logic
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Jan 30, 2025
1 parent 5e10070 commit e504877
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions screens/Dashboard/liquidations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ import { setUnreadLiquidation } from "../../redux/appSlice";
import { getAccountId } from "../../redux/accountSelectors";

const Liquidations = ({ isShow, setLiquidationPage }) => {
const dispatch = useAppDispatch();
const assets = useAppSelector(getAssetsCategory());
const accountId = useAppSelector(getAccountId);
const [isLoading, setIsLoading] = useState(false);
const [docs, setDocs] = useState([]);
const isMeme = useAppSelector(isMemeCategory);
const [isLoading, setIsLoading] = useState(false);
const [pagination, setPagination] = useState<{
page?: number;
totalPages?: number;
totalItems?: number;
}>({
page: 1,
});
const dispatch = useAppDispatch();
const isMeme = useAppSelector(isMemeCategory);
const assets = useAppSelector(getAssetsCategory(isMeme));
const accountId = useAppSelector(getAccountId);
useEffect(() => {
if (isShow) {
fetchData({
Expand Down
11 changes: 5 additions & 6 deletions screens/Dashboard/records.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ import {
} from "../../components/Icons/Icons";

const Records = ({ isShow }) => {
const accountId = useAccountId();
const { activeCategory } = useAppSelector((state) => state.category);
const { toastMessage, showToast } = useToastMessage();
const isMeme = useAppSelector(isMemeCategory);
const assets = useAppSelector(getAssetsCategory(isMeme));
const [isLoading, setIsLoading] = useState(false);
const [docs, setDocs] = useState<any>([]);
const [pagination, setPagination] = useState<{
page?: number;
Expand All @@ -32,6 +26,11 @@ const Records = ({ isShow }) => {
page: 1,
});
const [txLoadingStates, setTxLoadingStates] = useState({});
const accountId = useAccountId();
const { toastMessage, showToast } = useToastMessage();
const isMeme = useAppSelector(isMemeCategory);
const assets = useAppSelector(getAssetsCategory(isMeme));
const [isLoading, setIsLoading] = useState(false);

useEffect(() => {
if (isShow) {
Expand Down

0 comments on commit e504877

Please sign in to comment.