From 1341bdb0dbfcac85ff3893ac9cf350eb78c99367 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Mon, 23 Nov 2020 17:33:29 +0500 Subject: [PATCH] fix font size --- .../src/components/Menu/ColorSection.js | 37 +++++++------------ 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/apps/mobile/src/components/Menu/ColorSection.js b/apps/mobile/src/components/Menu/ColorSection.js index 532746086..4f8766acc 100644 --- a/apps/mobile/src/components/Menu/ColorSection.js +++ b/apps/mobile/src/components/Menu/ColorSection.js @@ -1,22 +1,21 @@ -import React, { useEffect } from 'react'; -import { Text, View } from 'react-native'; -import { useTracked } from '../../provider'; -import { Actions } from '../../provider/Actions'; -import { eSendEvent } from '../../services/EventManager'; -import { refreshNotesPage } from '../../utils/Events'; +import React, {useEffect} from 'react'; +import {Text, View} from 'react-native'; +import {useTracked} from '../../provider'; +import {Actions} from '../../provider/Actions'; +import {eSendEvent} from '../../services/EventManager'; +import {refreshNotesPage} from '../../utils/Events'; import NavigationService from '../../services/Navigation'; -import { PressableButton } from '../PressableButton'; -import {COLORS_NOTE} from "../../utils/Colors"; -import {SIZE, WEIGHT} from "../../utils/SizeUtils"; +import {PressableButton} from '../PressableButton'; +import {COLORS_NOTE} from '../../utils/Colors'; +import {SIZE, WEIGHT} from '../../utils/SizeUtils'; import Paragraph from '../Typography/Paragraph'; -import { sideMenuRef } from '../../utils/Refs'; +import {sideMenuRef} from '../../utils/Refs'; export const ColorSection = ({noTextMode}) => { const [state, dispatch] = useTracked(); const {colors, colorNotes, currentScreen} = state; useEffect(() => { - dispatch({type: Actions.TAGS}); }, []); @@ -25,7 +24,7 @@ export const ColorSection = ({noTextMode}) => { type: 'color', title: item.title, color: item, - menu:true + menu: true, }; dispatch({ type: Actions.HEADER_VERTICAL_MENU, @@ -46,8 +45,8 @@ export const ColorSection = ({noTextMode}) => { NavigationService.navigate('NotesPage', params); eSendEvent(refreshNotesPage, params); - NavigationService.closeDrawer() - } + NavigationService.closeDrawer(); + }; return ( { alignItems: 'center', width: '85%', }}> - + {item.title.slice(0, 1).toUpperCase() + item.title.slice(1)} - - )}