@autobusal/account-transactions 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Manage/Admin.tsx CHANGED
@@ -21,7 +21,7 @@ const Admin = ({ url, t }: Props): JSX.Element => {
21
21
 
22
22
  const navigate = useNavigate();
23
23
 
24
- const { data } = useGetTransaction(id);
24
+ const { data, isFetching } = useGetTransaction(id);
25
25
 
26
26
  const { mutate: Update, isPending } = usePostTransaction(id);
27
27
 
@@ -99,6 +99,7 @@ const Admin = ({ url, t }: Props): JSX.Element => {
99
99
  type: 'textarea',
100
100
  value: data?.comment
101
101
  }] }
102
+ fetching={ isFetching }
102
103
  pending={ isPending }
103
104
  t={ t }
104
105
  actions={ [
package/Manage/Simple.tsx CHANGED
@@ -21,7 +21,7 @@ const Simple = ({ url, t }: Props): JSX.Element => {
21
21
 
22
22
  const navigate = useNavigate();
23
23
 
24
- const { data } = useGetTransaction(id);
24
+ const { data, isFetching } = useGetTransaction(id);
25
25
 
26
26
  const { mutate: Update, isPending } = usePostTransaction(id);
27
27
 
@@ -78,6 +78,7 @@ const Simple = ({ url, t }: Props): JSX.Element => {
78
78
  type: 'display',
79
79
  value: t(`data.transaction_status.${ data?.status }`)
80
80
  }] }
81
+ fetching={ isFetching }
81
82
  pending={ isPending }
82
83
  t={ t }
83
84
  actions={ [] }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/account-transactions",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }