Skip to content

Commit cfe0f7c

Browse files
authored
Merge pull request #3 from mrowe009/edit-transaction
Edit transaction
2 parents cd9d04e + b30e066 commit cfe0f7c

File tree

24 files changed

+2201
-264
lines changed

24 files changed

+2201
-264
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
android:theme="@style/AppTheme">
1212

1313
<activity
14-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
1514
android:name="com.finances.app.MainActivity"
1615
android:label="@string/title_activity_main"
1716
android:theme="@style/AppTheme.NoActionBarLaunch"
18-
android:launchMode="singleTask">
17+
android:launchMode="singleTask"
18+
android:screenOrientation="portrait">
1919

2020
<intent-filter>
2121
<action android:name="android.intent.action.MAIN" />

package-lock.json

Lines changed: 1862 additions & 151 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,31 @@
2626
"homepage": ".",
2727
"dependencies": {
2828
"@apollo/react-hooks": "^3.1.5",
29-
"@capacitor/android": "^2.0.2",
30-
"@capacitor/core": "^2.0.2",
31-
"@ionic/react": "^5.1.0",
32-
"@ionic/react-router": "^5.1.0",
33-
"apollo-boost": "^0.4.7",
29+
"@capacitor/android": "^2.1.0",
30+
"@capacitor/core": "^2.1.0",
31+
"@ionic/react": "^5.1.1",
32+
"@ionic/react-router": "^5.1.1",
33+
"apollo-boost": "^0.4.9",
3434
"clsx": "^1.1.0",
35-
"dayjs": "^1.8.26",
35+
"dayjs": "^1.8.27",
3636
"formik": "^2.1.4",
3737
"graphql": "^15.0.0",
3838
"graphql-tag": "^2.10.3",
3939
"lodash": "^4.17.15",
40+
"npm-check-updates": "^6.0.1",
4041
"prop-types": "^15.7.2",
4142
"react": "^16.13.1",
4243
"react-dom": "^16.13.1",
4344
"react-jss": "^10.1.1",
44-
"react-router": "^5.1.2",
45-
"react-router-dom": "^5.1.2",
45+
"react-router": "^5.2.0",
46+
"react-router-dom": "^5.2.0",
4647
"react-scripts": "3.4.1",
47-
"react-use": "^14.2.0",
48+
"react-use": "^15.1.0",
4849
"rxjs": "^6.5.5",
49-
"yup": "^0.28.5"
50+
"yup": "^0.29.0"
5051
},
5152
"devDependencies": {
52-
"@capacitor/cli": "2.0.2",
53+
"@capacitor/cli": "2.1.0",
5354
"husky": "^4.2.5",
5455
"prettier": "^2.0.5",
5556
"pretty-quick": "^2.0.1"

src/components/Transaction.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/components/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ export * from './Logo'
55
export * from './Modal'
66
export * from './Popover'
77
export * from './PullToRefresh'
8-
export * from './Transaction'
98
export * from './Toolbar'

src/elements/Checkbox.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const useCheckboxStyle = createUseStyles(theme => ({
1313
}
1414
}))
1515

16-
export const Checkbox = ({ label, onChange, ...rest }) => {
16+
export const Checkbox = ({ label, onChange, color, ...rest }) => {
1717
const classes = useCheckboxStyle()
1818
return (
1919
<IonItem lines="none" className={classes.item} color="transparent">
@@ -25,5 +25,6 @@ export const Checkbox = ({ label, onChange, ...rest }) => {
2525

2626
Checkbox.propTypes = {
2727
label: PropTypes.string,
28-
onChange: PropTypes.func
28+
onChange: PropTypes.func,
29+
color: PropTypes.string
2930
}

src/elements/DatePicker.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import React from 'react'
2+
import PropTypes from 'prop-types'
3+
import { createUseStyles } from 'react-jss'
4+
import { IonDatetime, IonItem, IonIcon } from '@ionic/react'
5+
6+
import { calendarOutline } from 'ionicons/icons'
7+
8+
const useDatePickerStyles = createUseStyles({
9+
datePicker: {
10+
'--border-width': 0,
11+
width: '100%',
12+
marginBottom: 'var(--inputSpacing)',
13+
borderRadius: 'var(--borderRadius)',
14+
boxShadow: 'var(--boxShadow)'
15+
}
16+
})
17+
18+
export const DatePicker = ({ onChange, ...props }) => {
19+
const classes = useDatePickerStyles()
20+
return (
21+
<IonItem color="medium" className={classes.datePicker}>
22+
<IonDatetime displayFormat="M/D/YYYY" onIonChange={onChange} {...props} />
23+
<IonIcon icon={calendarOutline} slot="end" />
24+
</IonItem>
25+
)
26+
}
27+
28+
DatePicker.propTypes = {
29+
onChange: PropTypes.func
30+
}

src/elements/Input.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ const useInputStyles = createUseStyles(theme => ({
88
input: {
99
flex: 'none',
1010
width: '100%',
11+
minHeight: '48px',
1112
color: 'var(--white)',
1213
outline: 'none',
1314
border: 'none',
1415
background: 'var(--ion-color-medium)',
1516
padding: theme.spacing(1.25),
1617
borderRadius: 'var(--borderRadius)',
17-
marginBottom: theme.spacing(3),
18+
marginBottom: 'var(--inputSpacing)',
19+
boxShadow: 'var(--boxShadow)',
1820
'&::placeholder': {
1921
color: 'var(--gray7)',
2022
opacity: 0.5

src/elements/Select.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ import { IonItem, IonLabel, IonSelect, IonSelectOption } from '@ionic/react'
55
import { createUseStyles } from 'react-jss'
66
import map from 'lodash/fp/map'
77

8-
const useSelectStyles = createUseStyles(theme => ({
8+
const useSelectStyles = createUseStyles({
99
select: {
10-
'--min-height': '38px',
10+
'--min-height': '48px',
11+
'--border-width': 0,
1112
width: '100%',
12-
marginBottom: theme.spacing(2),
13-
borderRadius: 'var(--borderRadius)'
13+
marginBottom: 'var(--inputSpacing)',
14+
borderRadius: 'var(--borderRadius)',
15+
boxShadow: 'var(--boxShadow)'
1416
},
1517
actionSheet: {
1618
'--max-height': '300px'
1719
}
18-
}))
20+
})
1921

2022
export const Select = ({ className, label, name, onChange, value, options, type = 'action-sheet', ...rest }) => {
2123
const classes = useSelectStyles()

src/elements/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './AspectRatio'
22
export * from './Button'
33
export * from './Checkbox'
4+
export * from './DatePicker'
45
export * from './Fab'
56
export * from './Input'
67
export * from './Select'

0 commit comments

Comments
 (0)