diff --git a/app/(tabs)/budget/index.tsx b/app/(tabs)/budget/index.tsx index cd9ab58..8c53d73 100644 --- a/app/(tabs)/budget/index.tsx +++ b/app/(tabs)/budget/index.tsx @@ -1,6 +1,6 @@ -import { SafeAreaView, StyleSheet, Text, View } from 'react-native'; +import { SafeAreaView, StyleSheet, View } from 'react-native'; import { FlatList } from 'react-native-gesture-handler'; -import { SearchBar } from '../../../components'; +import { BudgetHeader } from '../../../components'; import CategoryItem from '../../../components/budget/categoryItem'; import useFetch from '../../../hooks/useFetch'; import { useThemeColor } from '../../../hooks/useThemeColor'; @@ -14,11 +14,9 @@ export default function Page() { return ( - - Expense View - - - + + + } @@ -37,5 +35,5 @@ const styles = StyleSheet.create({ }, itemSeperatorStyle: { marginVertical: 5, - } + }, }); \ No newline at end of file diff --git a/components/budget/budgetHeader.tsx b/components/budget/budgetHeader.tsx new file mode 100644 index 0000000..cc1da14 --- /dev/null +++ b/components/budget/budgetHeader.tsx @@ -0,0 +1,35 @@ +import { StyleSheet, Text, View } from "react-native"; +import { useThemeColor } from "../../hooks/useThemeColor"; +import SearchBar from "../common/SearchBar"; + +const BudgetHeader = () => { + const primaryTextColor = useThemeColor("primaryText"); + const secondaryTextColor = useThemeColor("secondaryText"); + + + + return (<> + + Expense View + Savings View + + + ); +} + +export default BudgetHeader; + +const styles = StyleSheet.create({ + selectedHeaderTextStyle: { + fontSize: 40, + fontWeight: "bold", + }, + defaultHeaderTextStyle: { + fontSize: 20, + }, + containerStyle: { + backgroundColor: "blue", + flexDirection: "row", + justifyContent: "space-between", + }, +}); \ No newline at end of file diff --git a/components/index.tsx b/components/index.tsx index 805d6c0..4d74a43 100644 --- a/components/index.tsx +++ b/components/index.tsx @@ -11,10 +11,11 @@ import CustomCard from "./common/CustomCard" //login +import BudgetHeader from "./budget/budgetHeader" import Input from "./login/input" export { - ButtonSetting, CustomCard, ExpenseItem, Input, + BudgetHeader, ButtonSetting, CustomCard, ExpenseItem, Input, LoadingSymbol, Plus, SearchBar, ToggleSetting, Welcome }