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

feat: add WalletListItem component #2107

Merged
merged 6 commits into from
Jun 12, 2020

Conversation

goga-m
Copy link
Contributor

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

Summary

Wallet list component (<tr>) for Wallet listings
2020-06-12-001446_872x375_scrot

Usage:

const data = [
    {
        coin: "Btc",
        coinClassName: "text-theme-warning-400 border-theme-warning-200",
        avatarId: "test",
        address: "ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT",
        walletName: "My Wallet",
        balance: "100 BTC",
        fiat: "1,000,000 USD",
        walletTypeIcons: ["Star", "Multisig", "Ledger"],
        actions: [
            {
                label: "Action 1",
                value: "1",
            },
            {
                label: "Action 2",
                value: "2",
            },
            {
                label: "Action 3",
                value: "3",
            },
        ],
    },
];

return (
    <div>
        <div>
            <Table columns={columns} data={data}>
                {(rowData: any) => <WalletListItem {...rowData}></WalletListItem>}
            </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 11, 2020 21:17
@ghost ghost added the Complexity: High More than 256 lines changed. label Jun 11, 2020
@goga-m goga-m changed the title Feat/component wallet list item feat: add WalletListItem component Jun 11, 2020
Optimized SVG(s):
- src/app/assets/svg/ledger.svg
- src/app/assets/svg/multisig.svg
- src/app/assets/svg/star.svg
Optimized SVG(s):
- src/app/assets/svg/multisig.svg
@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

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

Impacted file tree graph

@@             Coverage Diff              @@
##           3.0-react     #2107    +/-   ##
============================================
  Coverage     100.00%   100.00%            
============================================
  Files             45        73    +28     
  Lines            298       526   +228     
  Branches          49        91    +42     
============================================
+ Hits             298       526   +228     
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% <ø> (ø)
...ings/pages/Settings/available-settings/General.tsx 100.00% <ø> (ø)
...s/wallets/components/MnemonicList/MnemonicList.tsx 100.00% <ø> (ø)
...ins/wallets/components/SignMessage/SignMessage.tsx 100.00% <ø> (ø)
...omains/wallets/pages/ImportWallet/ImportWallet.tsx 100.00% <ø> (ø)
src/app/components/Address/Address.tsx 100.00% <100.00%> (ø)
... and 65 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 8ee8e2c...44d1487. Read the comment docs.

@faustbrian faustbrian merged commit fb90e53 into 3.0-react Jun 12, 2020
@ghost ghost deleted the feat/component-wallet-list-item branch June 12, 2020 02:03
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants