Convert store selectors to Typescript

This commit is contained in:
Bogdan
2023-07-30 13:04:17 +03:00
parent efd5e92ca5
commit e51b85449d
30 changed files with 216 additions and 141 deletions
@@ -29,7 +29,7 @@ import styles from './IndexerInfoModalContent.css';
function createIndexerInfoItemSelector(indexerId: number) {
return createSelector(
createIndexerSelectorForHook(indexerId),
(indexer: Indexer) => {
(indexer?: Indexer) => {
return {
indexer,
};
@@ -58,7 +58,7 @@ function IndexerInfoModalContent(props: IndexerInfoModalContentProps) {
tags,
protocol,
capabilities,
} = indexer;
} = indexer as Indexer;
const { onModalClose } = props;