+ {[TransactionTypes.CANCEL, TransactionTypes.TRUST].includes(type) && (
+
+ )}
+ {type === TransactionTypes.TRUSTED && (
+
+ )}
+ {type === TransactionTypes.REGISTER && (
+
+ )}
+
+ {Icon &&
}
+
+ );
+ }
+};
diff --git a/src/components/shared/TransactionHistory/index.js b/src/components/shared/TransactionHistory/index.js
new file mode 100644
index 00000000..d07ef313
--- /dev/null
+++ b/src/components/shared/TransactionHistory/index.js
@@ -0,0 +1,2 @@
+export * from "./TransactionHistory";
+export * from "./TransactionHistoryRow";
diff --git a/src/components/shared/TxHistory.jsx b/src/components/shared/TxHistory.jsx
deleted file mode 100644
index c3c6de4c..00000000
--- a/src/components/shared/TxHistory.jsx
+++ /dev/null
@@ -1,180 +0,0 @@
-import "./TxHistory.scss";
-
-import {
- Text,
- Table,
- TableCell,
- TableRow,
- Label,
- Box,
- Skeleton,
- Pagination,
- EmptyState,
- TableHead,
- Card,
-} from "@unioncredit/ui";
-import { Link } from "react-router-dom";
-import { useAccount, useNetwork } from "wagmi";
-
-import { ReactComponent as Borrow } from "@unioncredit/ui/lib/icons/borrow.svg";
-import { ReactComponent as Repayment } from "@unioncredit/ui/lib/icons/repayment.svg";
-import { ReactComponent as NewMember } from "@unioncredit/ui/lib/icons/newMember.svg";
-import { ReactComponent as NewVouch } from "@unioncredit/ui/lib/icons/newVouch.svg";
-import { ReactComponent as NewVouchRecieved } from "@unioncredit/ui/lib/icons/newVouchRecieved.svg";
-import { ReactComponent as CancelledVouch } from "@unioncredit/ui/lib/icons/cancelVouch.svg";
-import { ReactComponent as InlineExternal } from "@unioncredit/ui/lib/icons/externalinline.svg";
-
-import Avatar from "./Avatar";
-import format from "utils/format";
-import useTxHistory from "hooks/useTxHistory";
-import usePagination from "hooks/usePagination";
-import { compareAddresses } from "utils/compare";
-import { RelativeTime } from "./BlockRelativeTime";
-import PrimaryLabel from "components/shared/PrimaryLabel";
-import { TransactionTypes, EIP3770, ZERO_ADDRESS } from "constants";
-import { blockExplorerTx } from "utils/blockExplorer";
-
-const icons = {
- [TransactionTypes.CANCEL]: CancelledVouch,
- [TransactionTypes.BORROW]: Borrow,
- [TransactionTypes.REPAY]: Repayment,
- [TransactionTypes.TRUST]: NewVouch,
- [TransactionTypes.TRUSTED]: NewVouchRecieved,
- [TransactionTypes.REGISTER]: NewMember,
-};
-
-const Address = ({ address }) => {
- const { chain } = useNetwork();
- const { address: connectedAddress } = useAccount();
-
- return (
-