diff --git a/apps/mobile/src/components/Header/HeaderMenu.js b/apps/mobile/src/components/Header/HeaderMenu.js index 8c445317b..7e4b38324 100644 --- a/apps/mobile/src/components/Header/HeaderMenu.js +++ b/apps/mobile/src/components/Header/HeaderMenu.js @@ -6,14 +6,12 @@ import Icon from "react-native-vector-icons/MaterialCommunityIcons"; import {eSendEvent} from "../../services/EventManager"; import {eOpenSortDialog} from "../../utils/Events"; - - export const HeaderMenu = () => { const [state,] = useTracked(); const {colors,settings} = state; - return { eSendEvent(eOpenSortDialog); }} @@ -26,12 +24,12 @@ export const HeaderMenu = () => { style={{ fontSize: SIZE.xs + 1, fontFamily: WEIGHT.regular, - color: colors.icon, + color: colors.pri, marginRight: 5 }}> {settings.sort.slice(0,1).toUpperCase() + settings.sort.slice(1,settings.sort.length)} - diff --git a/apps/mobile/src/components/Header/HeaderTitle.js b/apps/mobile/src/components/Header/HeaderTitle.js index 00ec3b913..eebf1ee18 100644 --- a/apps/mobile/src/components/Header/HeaderTitle.js +++ b/apps/mobile/src/components/Header/HeaderTitle.js @@ -3,8 +3,8 @@ import {Text} from 'react-native'; import {useTracked} from '../../provider'; import {SIZE, WEIGHT} from "../../utils/SizeUtils"; -export const HeaderTitle = ({root}) => { - const [state, dispatch] = useTracked(); +export const HeaderTitle = () => { + const [state,] = useTracked(); const {colors, headerTextState} = state; const style = { diff --git a/apps/mobile/src/components/Header/index.js b/apps/mobile/src/components/Header/index.js index bb897d1ea..d5430d1fb 100644 --- a/apps/mobile/src/components/Header/index.js +++ b/apps/mobile/src/components/Header/index.js @@ -13,7 +13,7 @@ import {HeaderLeftMenu} from "./HeaderLeftMenu"; import { eScrollEvent } from '../../utils/Events'; let timeout = null; -export const Header = ({showSearch, root}) => { +export const Header = ({ root}) => { const [state, ] = useTracked(); const {colors, syncing} = state; const insets = useSafeAreaInsets(); diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js index 6feccf755..333531b73 100755 --- a/apps/mobile/src/views/Home/index.js +++ b/apps/mobile/src/views/Home/index.js @@ -90,6 +90,7 @@ export const Home = ({navigation}) => { type="notes" isHome={true} pinned={true} + sortMenuButton={true} focused={() => navigation.isFocused()} RenderItem={NoteItemWrapper} placeholder={}