Skip to content

Commit ea51c5d

Browse files
committed
fix: types
1 parent 4b1ca1e commit ea51c5d

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

src/components/common/Extensions/UserHub/partials/BalanceTab/partials/StreamsInfoRow/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Decimal from 'decimal.js';
22

33
import { type ColonyFragment, type SupportedCurrencies } from '~gql';
4+
import { type StreamingPaymentItems } from '~shared/StreamingPayments/types.ts';
45
import { StreamingPaymentStatus } from '~types/streamingPayments.ts';
56
import { fetchCurrentPrice } from '~utils/currency/currency.ts';
67
import {
@@ -12,8 +13,6 @@ import {
1213
getTokenDecimalsWithFallback,
1314
} from '~utils/tokens.ts';
1415

15-
import { type StreamingPaymentItems } from './types.ts';
16-
1716
export const calculateToCurrency = async ({
1817
amount,
1918
tokenAddress,

src/components/frame/v5/pages/StreamingPaymentsPage/StreamingPaymentsPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ const StreamingPaymentsPage = () => {
5151
nativeDomainId,
5252
});
5353

54-
const { isExtensionInstalled, extensionDataLoading, status } =
54+
const { isExtensionInstalled, isExtensionDataLoading, status } =
5555
useExtensionItem(Extension.StreamingPayments);
5656

5757
const isExtensionDisabled =
58-
status === 'deprecated' || (!isExtensionInstalled && !extensionDataLoading);
58+
status === 'deprecated' ||
59+
(!isExtensionInstalled && !isExtensionDataLoading);
5960

6061
return (
6162
<ContentWithTeamFilter>

src/components/v5/common/CompletedAction/partials/StreamingPayment/partials/StreamingPaymentWidget/StreamingPaymentWidget.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ const StreamingPaymentWidget: FC<StreamingPaymentWidgetProps> = ({
158158
colonyAddress: colony.colonyAddress,
159159
streamingPaymentsAddress: streamingPaymentsAddress ?? '',
160160
streamingPayment: streamingPaymentData,
161+
tokenAddress: streamingPaymentData.tokenAddress,
161162
};
162163

163164
await claim(claimPayload);

src/components/v5/payments/TmpStreamingPayments.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ const TmpStreamingPayments = () => {
8484
endCondition,
8585
interval: 86400, // One day
8686
recipientAddress: user?.walletAddress ?? '',
87-
startTimestamp: BigNumber.from(
87+
startTimestamp: `${BigNumber.from(
8888
(blockTime ?? Math.floor(Date.now() / 1000)) - 604800,
89-
), // One week ago
89+
)}`, // One week ago
9090
tokenAddress,
9191
tokenDecimals: parseInt(decimalAmount, 10),
92-
endTimestamp: BigNumber.from(
92+
endTimestamp: `${BigNumber.from(
9393
(blockTime ?? Math.floor(Date.now() / 1000)) + 604800,
94-
), // Next week
94+
)}`, // Next week
9595
limitAmount: limit,
9696
};
9797

@@ -121,6 +121,7 @@ const TmpStreamingPayments = () => {
121121
colonyAddress: colony.colonyAddress,
122122
streamingPaymentsAddress: streamingPaymentsAddress ?? '',
123123
streamingPayment,
124+
tokenAddress: streamingPayment.tokenAddress,
124125
};
125126

126127
await claim(claimPayload);

src/components/v5/tmpDebug/TmpStreamingPayments.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ const TmpStreamingPayments = () => {
254254
colonyAddress: colony.colonyAddress,
255255
streamingPaymentsAddress: streamingPaymentsAddress ?? '',
256256
streamingPayment,
257+
tokenAddress: streamingPayment.tokenAddress,
257258
};
258259

259260
await claim(claimPayload);

0 commit comments

Comments
 (0)