A few changes:
Auto fill amount category edit Empty list component calendar filtering in category screen, expenses can be added directly
This commit is contained in:
parent
e0f3cf947c
commit
8149ec234f
10 changed files with 97 additions and 42 deletions
24
components/common/EmptyListCompenent.tsx
Normal file
24
components/common/EmptyListCompenent.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { View, Text, StyleSheet } from 'react-native'
|
||||
import React from 'react'
|
||||
import { useTheme } from '../../app/contexts/ThemeContext'
|
||||
|
||||
const EmptyListCompenent:React.FC = () => {
|
||||
const {colors} = useTheme();
|
||||
return (
|
||||
<View style={[styles.container, {backgroundColor: colors.backgroundColor}]}>
|
||||
<Text style={[{fontSize: 20}, {color: colors.primaryText}]}>No matching Data</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
height: 70,
|
||||
borderRadius: 20,
|
||||
}
|
||||
})
|
||||
|
||||
export default EmptyListCompenent
|
||||
Reference in a new issue