A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
redesign move to notebook sheet
ammarahm-ed313f536fef81
diff --git a/apps/mobile/src/components/AddTopicDialog/index.js b/apps/mobile/src/components/AddTopicDialog/index.jsindex 3c267cfa4..61180993d 100644--- a/apps/mobile/src/components/AddTopicDialog/index.js+++ b/apps/mobile/src/components/AddTopicDialog/index.js@@ -116,11 +116,11 @@ export class AddTopicDialog extends React.Component {<DialogContainer><DialogHeadericon="book-outline"- title={this.toEdit ? 'Edit Topic' : 'New Topic'}+ title={this.toEdit ? 'Edit topic' : 'New topic'}paragraph={this.toEdit? 'Edit title of the topic'- : 'Create a new topic in ' + this.notebook.title+ : 'Add a new topic in ' + this.notebook.title}padding={12}/>@@ -136,7 +136,7 @@ export class AddTopicDialog extends React.Component {}}blurOnSubmit={false}defaultValue={this.toEdit ? this.toEdit.title : null}- placeholder="Enter title of topic"+ placeholder="Enter title"onSubmit={() => this.addNewTopic()}returnKeyLabel="Done"returnKeyType="done"@@ -144,7 +144,7 @@ export class AddTopicDialog extends React.Component {</View><DialogButtons- positiveTitle={this.toEdit ? 'Save' : 'Create'}+ positiveTitle={this.toEdit ? 'Save' : 'Add'}onPressNegative={() => this.close()}onPressPositive={() => this.addNewTopic()}loading={this.state.loading}diff --git a/apps/mobile/src/components/Dialog/BaseDialog.js b/apps/mobile/src/components/Dialog/BaseDialog.jsindex 669a46b36..ea83744b6 100644--- a/apps/mobile/src/components/Dialog/BaseDialog.js+++ b/apps/mobile/src/components/Dialog/BaseDialog.js@@ -1,4 +1,4 @@-import React from 'react';+import React, { useEffect } from 'react';import {KeyboardAvoidingView,Modal,@@ -7,8 +7,9 @@ import {StyleSheet,TouchableOpacity} from 'react-native';+import {useSettingStore} from '../../provider/stores';import useIsFloatingKeyboard from '../../utils/use-is-floating-keyboard';-import { BouncingView } from '../Transitions/bouncing-view';+import {BouncingView} from '../Transitions/bouncing-view';const BaseDialog = ({visible,@@ -26,6 +27,14 @@ const BaseDialog = ({}) => {const floating = useIsFloatingKeyboard();+ useEffect(() => {++ return () => {+ useSettingStore.getState().setSheetKeyboardHandler(true);+ }++ },[])+return (<Modalvisible={visible}@@ -35,10 +44,14 @@ const BaseDialog = ({onShow={() => {if (onShow) {onShow();+ useSettingStore.getState().setSheetKeyboardHandler(false);}}}animationType={animation}- onRequestClose={onRequestClose}>+ onRequestClose={() => {+ useSettingStore.getState().setSheetKeyboardHandler(true);+ onRequestClose && onRequestClose();+ }}><SafeAreaViewstyle={{backgroundColor: backgrounddiff --git a/apps/mobile/src/components/MoveNoteDialog/index.js b/apps/mobile/src/components/MoveNoteDialog/index.jsindex 08ae9bfc9..7dd659573 100644--- a/apps/mobile/src/components/MoveNoteDialog/index.js+++ b/apps/mobile/src/components/MoveNoteDialog/index.js@@ -5,12 +5,12 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {notesnook} from '../../../e2e/test.ids';import {useTracked} from '../../provider';import {Actions} from '../../provider/Actions';-import {useNotebookStore, useSelectionStore} from '../../provider/stores';+import {useNotebookStore, useSelectionStore, useSettingStore} from '../../provider/stores';import {eSubscribeEvent,eUnSubscribeEvent,sendNoteEditedEvent,- ToastEvent,+ ToastEvent} from '../../services/EventManager';import Navigation from '../../services/Navigation';import {getTotalNotes} from '../../utils';@@ -23,6 +23,10 @@ import DialogHeader from '../Dialog/dialog-header';import {PressableButton} from '../PressableButton';import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';+import Input from '../Input';+import {ActionIcon} from '../ActionIcon';+import {Dialog} from '../Dialog';+import {presentDialog} from '../Dialog/functions';let newNotebookTitle = null;let newTopicTitle = null;@@ -59,7 +63,7 @@ const MoveNoteDialog = () => {Navigation.routeNames.Favorites,Navigation.routeNames.NotesPage,Navigation.routeNames.Notebook,- Navigation.routeNames.Notebooks,+ Navigation.routeNames.Notebooks]);};@@ -81,47 +85,50 @@ const MoveNoteComponent = ({close, note, setNote}) => {const {colors} = state;const notebooks = useNotebookStore(state =>- state.notebooks.filter(n => n.type === 'notebook'),+ state.notebooks.filter(n => n.type === 'notebook'));const selectedItemsList = useSelectionStore(state => state.selectedItemsList);const setNotebooks = useNotebookStore(state => state.setNotebooks);-const [expanded, setExpanded] = useState('');const [notebookInputFocused, setNotebookInputFocused] = useState(false);- const [topicInputFocused, setTopicInputFocused] = useState(false);const [noteExists, setNoteExists] = useState([]);const addNewNotebook = async () => {if (!newNotebookTitle || newNotebookTitle.trim().length === 0)return ToastEvent.show({heading: 'Notebook title is required',type: 'error',- context: 'local',+ context: 'local'});- await db.notebooks.add({+ let id = await db.notebooks.add({title: newNotebookTitle,description: null,topics: [],- id: null,+ id: null});+ console.log("added notebook id",id);+ setExpanded(id);+ openAddTopicDialog(db.notebooks.notebook(id).data);notebookInput.current?.clear();notebookInput.current?.blur();setNotebooks();+ updateNoteExists();};- const addNewTopic = async () => {- if (!newTopicTitle || newTopicTitle.trim().length === 0) {- return ToastEvent.show({+ const addNewTopic = async (value,item) => {+ if (!value || value.trim().length === 0) {+ ToastEvent.show({heading: 'Topic title is required',type: 'error',- context: 'local',+ context: 'local'});+ return false;}- await db.notebooks.notebook(expanded).topics.add(newTopicTitle);+ console.log(item.id);+ await db.notebooks.notebook(item.id).topics.add(value);setNotebooks();- topicInput.current?.clear();- topicInput.current?.blur();- newTopicTitle = null;+ updateNoteExists();+ return true;};const handlePress = async (item, index) => {@@ -136,10 +143,11 @@ const MoveNoteComponent = ({close, note, setNote}) => {Navigation.setRoutesToUpdate([Navigation.routeNames.NotesPage,Navigation.routeNames.Favorites,- Navigation.routeNames.Notes,+ Navigation.routeNames.Notes]);}setNotebooks();+ updateNoteExists();return;}@@ -150,9 +158,9 @@ const MoveNoteComponent = ({close, note, setNote}) => {await db.notes.move({topic: item.id,- id: item.notebookId,+ id: item.notebookId},- ...noteIds,+ ...noteIds);if (note && note.id) {setNote({...db.notes.note(note.id).data});@@ -160,16 +168,21 @@ const MoveNoteComponent = ({close, note, setNote}) => {Navigation.setRoutesToUpdate([Navigation.routeNames.NotesPage,Navigation.routeNames.Favorites,- Navigation.routeNames.Notes,+ Navigation.routeNames.Notes]);}setNotebooks();+ updateNoteExists();};useEffect(() => {+ updateNoteExists();+ }, []);++ const updateNoteExists = () => {if (!note?.id) return;let ids = [];-+ let notebooks = db.notebooks.all;for (let i = 0; i < notebooks.length; i++) {if (notebooks[i].topics) {for (let t = 0; t < notebooks[i].topics.length; t++) {@@ -180,16 +193,32 @@ const MoveNoteComponent = ({close, note, setNote}) => {}}setNoteExists(ids);- }, []);+ };++ const openAddTopicDialog = item => {+ presentDialog({+ context: 'move_note',+ input: true,+ inputPlaceholder: 'Enter title',+ title: 'New topic',+ paragraph: 'Add a new topic in ' + item.title,+ positiveText: 'Add',+ positivePress: value => {+ return addNewTopic(value,item);+ }+ });++ };return (<>+ <Dialog context="move_note" /><View><TouchableOpacitystyle={{width: '100%',height: '100%',- position: 'absolute',+ position: 'absolute'}}onPress={() => {Keyboard.dismiss();@@ -199,7 +228,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {style={{paddingHorizontal: 12,flexDirection: 'row',- justifyContent: 'space-between',+ justifyContent: 'space-between'}}><DialogHeadertitle="Add to notebook"@@ -224,94 +253,66 @@ const MoveNoteComponent = ({close, note, setNote}) => {ListFooterComponent={<Viewstyle={{- height: 100,+ height: 100}}/>}ListHeaderComponent={<Viewstyle={{- flexDirection: 'row',- justifyContent: 'space-between',- alignItems: 'center',- marginBottom: 10,width: '100%',- borderBottomWidth: 1,- borderColor: colors.nav,- paddingHorizontal: 12,+ marginTop: 10}}>- <TextInput- ref={notebookInput}+ <Input+ fwdRef={notebookInput}onChangeText={value => {newNotebookTitle = value;}}testID={notesnook.ids.dialogs.addTo.addNotebook}blurOnSubmit={false}- onFocus={() => {+ onFocusInput={() => {setNotebookInputFocused(true);}}- onBlur={() => {+ onBlurInput={() => {setNotebookInputFocused(false);}}- onSubmitEditing={addNewNotebook}- style={[- {- color: colors.pri,- width: '90%',- maxWidth: '90%',- paddingHorizontal: 0,- borderRadius: 5,- minHeight: 45,- fontSize: SIZE.md,- fontFamily: 'OpenSans-Regular',- padding: pv - 2,- },- ]}+ button={{+ icon: 'check',+ color: notebookInputFocused ? colors.accent : colors.icon+ }}+ onSubmit={addNewNotebook}placeholder="Create a new notebook"- placeholderTextColor={colors.icon}/>- <TouchableOpacity- onPress={addNewNotebook}- testID={notesnook.ids.dialogs.addTo.addNotebook}- style={[- {- borderRadius: 5,- minHeight: 45,- justifyContent: 'center',- alignItems: 'center',- },- ]}>- <Icon- name="plus"- size={SIZE.lg}- color={notebookInputFocused ? colors.accent : colors.icon}- />- </TouchableOpacity></View>}+ style={{+ paddingHorizontal: 12+ }}renderItem={({item, index}) => (<Viewstyle={{- height: expanded === item.id ? null : 60,+ borderWidth: 1,+ borderColor: expanded ? colors.nav : 'transparent',+ borderRadius: 6,+ overflow: 'hidden',+ marginBottom: 10}}><PressableButtononPress={() => {+ if (!item.topics || item.topics.length === 0) {+ setExpanded(item.id);+ openAddTopicDialog(item);+ return;+ }setExpanded(item.id === expanded ? null : item.id);- setTopicInputFocused(false);setNotebookInputFocused(false);}}- type="gray"+ type="grayBg"customStyle={{height: 50,width: '100%',- borderRadius: 0,- alignItems: 'flex-start',- marginBottom: 5,- borderBottomWidth: 1,- borderBottomColor:- noteExists.indexOf(item.id) > -1- ? colors.accent- : colors.nav,+ borderRadius: 5,+ alignItems: 'flex-start'}}><Viewstyle={{@@ -320,7 +321,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {justifyContent: 'space-between',flexDirection: 'row',alignItems: 'center',- paddingHorizontal: 12,+ paddingHorizontal: 12}}><View><Heading@@ -338,13 +339,20 @@ const MoveNoteComponent = ({close, note, setNote}) => {: item.topics.length + ' topics'}</Paragraph>) : null}-</View>- <Icon- name={expanded === item.id ? 'chevron-up' : 'chevron-down'}- color={colors.pri}- size={SIZE.lg}+ <ActionIcon+ name={expanded === item.id ? 'plus' : 'chevron-down'}+ color={expanded === item.id ? colors.accent : colors.pri}+ size={SIZE.xl}+ onPress={() => {+ if (expanded !== item.id) {+ setExpanded(item.id);+ return;+ }+ setExpanded(item.id);+ openAddTopicDialog(item);+ }}/></View></PressableButton>@@ -365,77 +373,10 @@ const MoveNoteComponent = ({close, note, setNote}) => {actionSheetRef.current?.handleChildScrollEnd();}}style={{- width: '90%',+ width: '100%',alignSelf: 'flex-end',- maxHeight: 500,+ maxHeight: 500}}- ListHeaderComponent={- <View>- <View- style={{- flexDirection: 'row',- justifyContent: 'space-between',- alignItems: 'center',- width: '100%',- alignSelf: 'flex-end',- marginBottom: 5,- marginTop: 5,- borderBottomWidth: 1,- paddingHorizontal: 12,- borderColor: colors.nav,- }}>- <TextInput- ref={topicInput}- onChangeText={value => {- newTopicTitle = value;- }}- testID={notesnook.ids.dialogs.addTo.addTopic}- blurOnSubmit={false}- onFocus={() => {- setTopicInputFocused(true);- }}- onBlur={() => {- setTopicInputFocused(false);- }}- onSubmitEditing={addNewTopic}- style={[- {- color: colors.pri,- width: '90%',- maxWidth: '90%',- paddingHorizontal: 0,- borderRadius: 5,- height: 40,- fontSize: SIZE.sm,- padding: pv - 2,- fontFamily: 'OpenSans-Regular',- },- ]}- placeholder="Add a topic"- placeholderTextColor={colors.icon}- />- <TouchableOpacity- onPress={addNewTopic}- testID={notesnook.ids.dialogs.addTo.btnTopic}- style={[- {- borderRadius: 5,- height: 40,- justifyContent: 'center',- alignItems: 'center',- },- ]}>- <Icon- name="plus"- size={SIZE.lg}- color={- topicInputFocused ? colors.accent : colors.icon- }- />- </TouchableOpacity>- </View>- </View>- }renderItem={({item, index}) => (<PressableButtononPress={() => handlePress(item, index)}@@ -443,13 +384,13 @@ const MoveNoteComponent = ({close, note, setNote}) => {customStyle={{height: 50,borderTopWidth: index === 0 ? 0 : 1,- borderTopColor: colors.nav,+ borderTopColor: index === 0 ? null : colors.nav,width: '100%',borderRadius: 0,alignItems: 'center',flexDirection: 'row',paddingHorizontal: 12,- justifyContent: 'space-between',+ justifyContent: 'space-between'}}><View><Paragraph color={colors.heading}>@@ -462,17 +403,14 @@ const MoveNoteComponent = ({close, note, setNote}) => {{note && item.notes.indexOf(note.id) > -1 ? (<ButtononPress={() => handlePress(item, index)}- title="Remove"- type="error"- height={25}- fontSize={SIZE.xs}+ icon="check"+ iconColor={colors.accent}+ iconSize={SIZE.lg}+ height={35}+ width={35}style={{- margin: 1,- marginRight: 5,- paddingHorizontal: 0,- paddingVertical: 2.5,borderRadius: 100,- paddingHorizontal: 12,+ paddingHorizontal: 0}}/>) : null}diff --git a/apps/mobile/src/components/Properties/index.js b/apps/mobile/src/components/Properties/index.jsindex eb65ccbcc..3f8b14f01 100644--- a/apps/mobile/src/components/Properties/index.js+++ b/apps/mobile/src/components/Properties/index.js@@ -43,10 +43,12 @@ import {} from '../../utils/Colors';import {db} from '../../utils/database';import {+ eOnNewTopicAdded,eOpenAttachmentsDialog,eOpenLoginDialog,eOpenMoveNoteDialog,- eOpenPublishNoteDialog+ eOpenPublishNoteDialog,+ refreshNotesPage} from '../../utils/Events';import {deleteItems, openLinkInBrowser} from '../../utils/functions';import {MMKV} from '../../utils/mmkv';@@ -60,6 +62,7 @@ import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';import {ColorTags} from './color-tags';import {DateMeta} from './date-meta';+import Notebooks from './notebooks';import {Tags} from './tags';import {Topics} from './topics';const w = Dimensions.get('window').width;@@ -802,7 +805,9 @@ export const Properties = ({? note.description: null}{(note.type === 'note' || note.itemType === 'note') &&- note?.headline ? note.headline : null}+ note?.headline+ ? note.headline+ : null}</Paragraph>) : null}@@ -813,6 +818,10 @@ export const Properties = ({<Topics item={note} close={close} /></View>+ {note && note.type === 'note' ? (+ <Notebooks note={note} close={close} />+ ) : null}+<DateMeta item={note} /></View>)}diff --git a/apps/mobile/src/components/Properties/notebooks.js b/apps/mobile/src/components/Properties/notebooks.jsnew file mode 100644index 000000000..905503085--- /dev/null+++ b/apps/mobile/src/components/Properties/notebooks.js@@ -0,0 +1,150 @@+import React from 'react';+import {ScrollView, View} from 'react-native';+import Icon from 'react-native-vector-icons/MaterialCommunityIcons';+import {useTracked} from '../../provider';+import {eSendEvent} from '../../services/EventManager';+import Navigation from '../../services/Navigation';+import {db} from '../../utils/database';+import {eOnNewTopicAdded, refreshNotesPage} from '../../utils/Events';+import {SIZE} from '../../utils/SizeUtils';+import {Button} from '../Button';+import {PressableButton} from '../PressableButton';+import Heading from '../Typography/Heading';++export default function Notebooks({note, close}) {+ const [state, dispatch] = useTracked();+ const {colors} = state;++ function getNotebooks(item) {+ if (!item.notebooks || item.notebooks.length < 1) return [];+ let notebooks = [];+ for (let notebook of item.notebooks) {+ let item_notebook = db.notebooks.notebook(notebook.id);+ console.log(notebook);+ if (item_notebook) {+ let data = {+ id: notebook.id,+ title: item_notebook.title,+ topics: notebook.topics+ .map(item => {+ let topic = item_notebook.topics.topic(item)?._topic;+ if (!topic) return null;+ return {+ id: topic.id,+ title: topic.title+ };+ })+ .filter(i => i !== null)+ };+ notebooks.push(data);+ }+ }+ return notebooks;+ }++ const navigateNotebook = id => {+ let routeName = 'Notebook';+ let item = db.notebooks.notebook(id).data;+ let params = {+ menu: false,+ notebook: item,+ title: item.title+ };+ let headerState = {+ heading: item.title,+ id: item.id,+ type: item.type+ };+ eSendEvent(eOnNewTopicAdded, params);+ Navigation.navigate(routeName, params, headerState);+ };++ const navigateTopic = (id, notebookId) => {+ let routeName = 'NotesPage';+ let item = db.notebooks.notebook(notebookId).topics.topic(id)._topic;++ let params = {...item, menu: false};+ let headerState = {+ heading: item.title,+ id: item.id,+ type: item.type+ };+ eSendEvent(refreshNotesPage, params);+ Navigation.navigate(routeName, params, headerState);+ };++ return !note.notebooks || note.notebooks.length === 0 ? null : (+ <View+ style={{+ width: '100%',+ borderTopWidth: 1,+ borderTopColor: colors.nav+ }}>+ {getNotebooks(note).map(item => (+ <PressableButton+ onPress={() => {+ navigateNotebook(item.id);+ close();+ }}+ customStyle={{+ justifyContent: 'flex-start',+ paddingHorizontal: 12,+ flexDirection: 'row',+ alignItems: 'center',+ flexShrink: 1,+ flexGrow: 1,+ marginTop: 5,+ paddingVertical: 6+ }}>+ <Icon+ name="book-outline"+ color={colors.accent}+ size={SIZE.sm + 1}+ style={{+ marginRight: 5+ }}+ />+ <Heading+ numberOfLines={1}+ style={{+ maxWidth: '50%'+ }}+ size={SIZE.sm}>+ {item.title}+ </Heading>++ <ScrollView+ horizontal={true}+ showsHorizontalScrollIndicator={false}+ style={{+ flexDirection: 'row',+ marginLeft: 8,+ borderLeftColor: colors.nav,+ borderLeftWidth: 1,+ paddingLeft: 8+ }}>+ {item.topics.map(topic => (+ <Button+ onPress={() => {+ navigateTopic(topic.id, item.id);+ close();+ }}+ title={topic.title}+ type="grayBg"+ height={22}+ fontSize={SIZE.xs + 1}+ icon="bookmark-outline"+ style={{+ marginRight: 5,+ borderRadius: 100,+ paddingHorizontal: 8+ }}+ />+ ))}+ <View style={{width: 10}} />+ </ScrollView>+ </PressableButton>+ ))}+ </View>+ );+}diff --git a/apps/mobile/src/components/Properties/tags.js b/apps/mobile/src/components/Properties/tags.jsindex 25b051d14..8c5c2554d 100644--- a/apps/mobile/src/components/Properties/tags.js+++ b/apps/mobile/src/components/Properties/tags.js@@ -38,10 +38,10 @@ export const Tags = ({item, close}) => {type="grayBg"icon="plus"iconPosition="right"- height={30}+ height={25}fontSize={SIZE.xs + 1}style={{- marginRight: 5,+ marginRight:5,paddingHorizontal: 0,borderRadius: 100,paddingHorizontal: 8@@ -93,7 +93,7 @@ const TagItem = ({tag, close}) => {// text: colors.accent// }}type="grayBg"- height={30}+ height={25}fontSize={SIZE.xs + 1}style={style}/>diff --git a/apps/mobile/src/components/Sheet/index.js b/apps/mobile/src/components/Sheet/index.jsindex 407da1560..76a289b09 100644--- a/apps/mobile/src/components/Sheet/index.js+++ b/apps/mobile/src/components/Sheet/index.js@@ -21,6 +21,7 @@ const SheetWrapper = ({const [state] = useTracked();const {colors} = state;const deviceMode = useSettingStore(state => state.deviceMode);+ const sheetKeyboardHandler = useSettingStore(state => state.sheetKeyboardHandler);const largeTablet = deviceMode === 'tablet';const smallTablet = deviceMode === 'smallTablet';const dimensions = useSettingStore(state => state.dimensions);@@ -63,6 +64,7 @@ const SheetWrapper = ({onPositionChanged={onHasReachedTop}closeOnTouchBackdrop={closeOnTouchBackdrop}keyboardMode={keyboardMode}+ keyboardHandlerEnabled={sheetKeyboardHandler}closeOnPressBack={closeOnTouchBackdrop}indicatorColor={colors.nav}onOpen={_onOpen}diff --git a/apps/mobile/src/provider/interfaces.ts b/apps/mobile/src/provider/interfaces.tsindex f20b741bf..c084b69e6 100644--- a/apps/mobile/src/provider/interfaces.ts+++ b/apps/mobile/src/provider/interfaces.ts@@ -99,7 +99,9 @@ export interface SettingStore extends State {appLoading: booleansetAppLoading: (appLoading: boolean) => voidisIntroCompleted: boolean- setIntroCompleted: (isIntroCompleted: boolean) => void+ setIntroCompleted: (isIntroCompleted: boolean) => void,+ setSheetKeyboardHandler:(sheetKeyboardHandler:boolean) => void,+ sheetKeyboardHandler:boolean}export interface MenuStore extends State {diff --git a/apps/mobile/src/provider/stores.ts b/apps/mobile/src/provider/stores.tsindex 93008c5d1..4f357cbe7 100644--- a/apps/mobile/src/provider/stores.ts+++ b/apps/mobile/src/provider/stores.ts@@ -249,6 +249,7 @@ export const useSettingStore = create<SettingStore>((set, get) => ({notifNotes: false,pitchBlack: false},+ sheetKeyboardHandler:true,fullscreen: false,deviceMode: 'mobile',dimensions: {width, height},@@ -259,7 +260,8 @@ export const useSettingStore = create<SettingStore>((set, get) => ({setDeviceMode: mode => set({deviceMode: mode}),setDimensions: dimensions => set({dimensions: dimensions}),setAppLoading: appLoading => set({appLoading}),- setIntroCompleted: isIntroCompleted => set({isIntroCompleted})+ setIntroCompleted: isIntroCompleted => set({isIntroCompleted}),+ setSheetKeyboardHandler:(sheetKeyboardHandler) => set({sheetKeyboardHandler})}));export const useMenuStore = create<MenuStore>((set, get) => ({diff --git a/apps/mobile/src/utils/Colors.js b/apps/mobile/src/utils/Colors.jsindex 1f12c6046..b3dd69451 100644--- a/apps/mobile/src/utils/Colors.js+++ b/apps/mobile/src/utils/Colors.js@@ -63,6 +63,7 @@ export const COLOR_SCHEME_LIGHT = {sec: '#ffffff',light: '#ffffff',transGray: '#00000010',+ border:"#E8E8E8"};export const COLOR_SCHEME_PITCH_BLACK = {...fixedColors,@@ -76,6 +77,7 @@ export const COLOR_SCHEME_PITCH_BLACK = {sec: 'black',light: '#ffffff',transGray: '#ffffff10',+ border:"#383838"};export const COLOR_SCHEME_DARK = {@@ -90,6 +92,7 @@ export const COLOR_SCHEME_DARK = {sec: 'black',light: '#ffffff',transGray: '#ffffff10',+ border:"#383838"};export function getCurrentColors() {