summaryrefslogtreecommitdiff
path: root/src/components/ListTable.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-26 01:56:04 +0300
committereug-vs <eug-vs@keemail.me>2021-03-26 01:56:04 +0300
commitef742ea9b2f246f74eae74169675a331679ad41c (patch)
tree693e92f3e6c2897038875550a12bbc1191b6d5c0 /src/components/ListTable.tsx
parent865b41114060765308d560181f4996c0aa7a3e74 (diff)
downloadcommercel-ui-ef742ea9b2f246f74eae74169675a331679ad41c.tar.gz
feat: add strong typing where possible
Diffstat (limited to 'src/components/ListTable.tsx')
-rw-r--r--src/components/ListTable.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ListTable.tsx b/src/components/ListTable.tsx
index 79e1ecd..89a2e06 100644
--- a/src/components/ListTable.tsx
+++ b/src/components/ListTable.tsx
@@ -7,8 +7,8 @@ export interface Field {
transform?: (value: string) => JSX.Element | string;
}
-interface Props {
- items?: any[];
+interface Props<T = any> {
+ items?: T[];
fields: Field[];
handleRowClick?: (index: number) => void;
}