Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

feat: add TransactionListItem component #2116

Merged
merged 5 commits into from
Jun 12, 2020

Conversation

goga-m
Copy link
Contributor

@goga-m goga-m commented Jun 12, 2020

Summary

Transaction row item <tr> to be used in Transaction lists

2020-06-12-121550_1111x242_scrot

Usage:

const data = [
	{
		date: "17 Mar 2020 22:02:10",
		avatarId: "test",
		type: "receive",
		address: "ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT",
		walletName: "My Wallet",
		amount: "100 BTC",
		fiat: "1,000,000 USD",
	},
	{
		date: "17 Mar 2020 22:02:10",
		avatarId: "test",
		type: "send",
		address: "ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT",
		walletName: "My Wallet",
		amount: "- 100 BTC",
		fiat: "1,000,000 USD",
	},
];

return (
	<div>
		<div>
			<Table columns={columns} data={data}>
				{(rowData: any) => <TransactionListItem {...rowData}></TransactionListItem>}
			</Table>
		</div>
	</div>
);
};

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@goga-m goga-m requested a review from faustbrian as a code owner June 12, 2020 09:19
@ghost ghost added Complexity: High More than 256 lines changed. Type: Feature The issue is a request for new functionality. labels Jun 12, 2020
Optimized SVG(s):
- src/app/assets/svg/received.svg
- src/app/assets/svg/sent.svg
@codecov
Copy link

codecov bot commented Jun 12, 2020

Codecov Report

Merging #2116 into 3.0-react will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           3.0-react     #2116    +/-   ##
============================================
  Coverage     100.00%   100.00%            
============================================
  Files             45        75    +30     
  Lines            298       570   +272     
  Branches          49        91    +42     
============================================
+ Hits             298       570   +272     
Flag Coverage Δ
#unit 100.00% <100.00%> (?)
Impacted Files Coverage Δ
src/app/components/Alert/Alert.tsx 100.00% <ø> (ø)
src/app/components/Dropdown/Dropdown.tsx 100.00% <ø> (ø)
src/app/components/Form/FormLabel.tsx 100.00% <ø> (ø)
src/app/components/Select/Select.tsx 100.00% <ø> (ø)
...app/components/SideBar/SideBarItem/SideBarItem.tsx 100.00% <ø> (ø)
src/domains/settings/pages/Settings/Settings.tsx 100.00% <ø> (ø)
...ings/pages/Settings/available-settings/General.tsx 100.00% <ø> (ø)
...s/wallets/components/MnemonicList/MnemonicList.tsx 100.00% <ø> (ø)
...omains/wallets/pages/ImportWallet/ImportWallet.tsx 100.00% <ø> (ø)
src/app/components/Address/Address.tsx 100.00% <100.00%> (ø)
... and 73 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 838b248...9f58c68. Read the comment docs.

@faustbrian faustbrian merged commit 4459dc7 into 3.0-react Jun 12, 2020
@ghost ghost deleted the feat/component-transaction-list-item branch June 12, 2020 10:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Complexity: High More than 256 lines changed. Type: Feature The issue is a request for new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants