Skip to content

Commit

Permalink
add: Missing icon for updated stream #222
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Oct 1, 2024
1 parent 1af43d5 commit 5c9fbfc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions packages/app/src/assets/StreamUpdateTX.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/app/src/assets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export { default as WalletConnectLogo } from './WalletConnectLogo.svg';
export { default as WalletConnectLogoWhite } from './WalletConnectLogoWhite.svg';
export { default as StreamTX } from './StreamTX.svg';
export { default as StreamStopTX } from './StreamStopTX.svg';
export { default as StreamUpdateTX } from './StreamUpdateTX.svg';
export { default as DonationTX } from './DonationTX.svg';
export { default as ClaimTX } from './ClaimTX.svg';
export { default as PayoutTX } from './PayoutTX.svg';
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useFetchFullName } from '../../hooks/useFetchFullName';
import { Text } from 'react-native';
import { useMemo } from 'react';
import { styles } from './styles';
import { DonationTX, StreamStopTX, StreamTX } from '../../assets';
import { DonationTX, StreamStopTX, StreamTX, StreamUpdateTX } from '../../assets';
import { totalDurationInSeconds } from '../../lib/totalDurationInSeconds';
import { Frequency } from '../../models/constants';
import env from '../../lib/env';
Expand All @@ -20,7 +20,8 @@ interface SupportTransactionListItemProps {
const getTxIcon = (transaction: SupportTx) => {
if (transaction.isFlowUpdate) {
if (transaction.flowRate === '0') return StreamStopTX;
else return StreamTX;
if (transaction.previousFlowRate !== '0') return StreamUpdateTX;
return StreamTX;
}
return DonationTX;
};
Expand Down

0 comments on commit 5c9fbfc

Please sign in to comment.