Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
salman-neslit committed Nov 28, 2024
1 parent f72f9ab commit 85c9e05
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ const AddressDetails = (props: AddressDetailsProps) => {
);
};

const columnInfo: CWTableColumnInfo[] = [
{
key: 'address',
header: 'Address',
numeric: false,
sortable: false,
},
{
key: 'communities',
header: 'Communities',
numeric: false,
sortable: false,
},
];

export const LinkedAddresses = (props: LinkedAddressesProps) => {
const [isRemoveModalOpen, setIsRemoveModalOpen] = useState(false);
const [currentAddress, setCurrentAddress] = useState<AddressInfo | null>(
Expand All @@ -94,21 +109,6 @@ export const LinkedAddresses = (props: LinkedAddressesProps) => {
}, {});
}, [addresses]);

const columnInfo: CWTableColumnInfo[] = [
{
key: 'address',
header: 'Address',
numeric: false,
sortable: false,
},
{
key: 'communities',
header: 'Communities',
numeric: false,
sortable: false,
},
];

const rowData = Object.entries(groupedAddresses).map(
([address, communities]) => ({
address: <Address address={address} />,
Expand Down

0 comments on commit 85c9e05

Please sign in to comment.