10 | Click{' '} 11 | 12 | here 13 | {' '} 14 | to return back to the home page 15 |
16 |I didn't expect this project to get a large amount of ⭐ because it is only a functional project for my personal practice.
4 |It is already getting over 150 ⭐ in here that's why I am going to make it open source so anyone can attribute it to this project.
5 | 6 | I want to make contributing to this project as easy and transparent as possible, whether it's: 7 | 8 | - Reporting a bug 9 | - Discussing the current state of the code 10 | - Submitting a fix 11 | - Proposing new features 12 | - Becoming a maintainer 13 | 14 | ## We Develop with Github 15 | We use github to host code, to track issues and feature requests, as well as accept pull requests. 16 | 17 | ## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests 18 | Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests: 19 | 20 | 1. Fork the repo and create your branch from `main`. 21 | 2. If you've added code that should be tested, add tests. 22 | 3. If you've changed APIs, update the documentation. 23 | 4. Ensure the test suite passes. 24 | 5. Make sure your code lints. 25 | 6. Issue that pull request! 26 | 27 | ## Any contributions you make will be under the MIT Software License 28 | In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. 29 | 30 | ## Report bugs using Github's [issues](https://github.com/edwardcdev/apollobank/issues) 31 | We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy! 32 | 33 | ## Write bug reports with detail, background, and sample code 34 | [This is an example](http://stackoverflow.com/q/12488905/180626) of a bug report, and I think it's not a bad model. Here's [another example from Craig Hockenberry](http://www.openradar.me/11905408), an app developer whom I greatly respect. 35 | 36 | **Great Bug Reports** tend to have: 37 | 38 | - A quick summary and/or background 39 | - Steps to reproduce 40 | - Be specific! 41 | - Give sample code if you can. 42 | - What you expected would happen 43 | - What actually happens 44 | - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) 45 | 46 | People *love* thorough bug reports. I'm not even kidding. 47 | 48 | ## Use a Consistent Coding Style 49 | I'm again borrowing these from [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md) 50 | 51 | * 2 spaces for indentation rather than tabs 52 | * You can try running `npm run lint` for style unification 53 | 54 | ## License 55 | By contributing, you agree that your contributions will be licensed under its MIT License. 56 | 57 | ## References 58 | This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md) 59 | -------------------------------------------------------------------------------- /client/src/components/Cards/TransactionCard.tsx: -------------------------------------------------------------------------------- 1 | import React, { useState } from 'react'; 2 | import { 3 | Avatar, 4 | Card, 5 | CardHeader, 6 | Collapse, 7 | CardContent, 8 | IconButton, 9 | CardActions, 10 | ThemeProvider, 11 | } from '@material-ui/core'; 12 | import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; 13 | import { theme } from '../../utils/theme'; 14 | import { useTransactionCardStyles } from './styles/TransactionCard.style'; 15 | 16 | interface TransactionCardProps { 17 | title: string; 18 | amount: string; 19 | time: string; 20 | card?: string; 21 | transactionIcon?: any; 22 | currencyIcon?: string; 23 | } 24 | 25 | export const TransactionCard: React.FC