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
fix incorrect header is showing
ammarahm-ed6b2cf4367aca
diff --git a/apps/mobile/src/components/ListPlaceholders/index.js b/apps/mobile/src/components/ListPlaceholders/index.jsindex 80c0edafb..910c9d3c8 100644--- a/apps/mobile/src/components/ListPlaceholders/index.js+++ b/apps/mobile/src/components/ListPlaceholders/index.js@@ -15,7 +15,7 @@ import {} from '../../assets/images/assets';import {useTracked} from '../../provider';import FastImage from 'react-native-fast-image'-export const Placeholder = ({type, w, h, color}) => {+export const Placeholder = React.memo(({type, w, h, color}) => {const [state, dispatch] = useTracked();const {colors} = state;const getSVG = () => {@@ -43,6 +43,8 @@ export const Placeholder = ({type, w, h, color}) => {}};++ console.log(type);return (<SvgToPngViewcolor={type === 'notes' ? color || colors.accent : colors.accent}@@ -52,7 +54,7 @@ export const Placeholder = ({type, w, h, color}) => {height={h}/>);-};+},() => true);export const SvgToPngView = ({width, height, src, color, img}) => {const [error, setError] = useState(false);diff --git a/apps/mobile/src/components/SimpleList/header.js b/apps/mobile/src/components/SimpleList/header.jsindex 1ec4c8c33..ccf4d439d 100644--- a/apps/mobile/src/components/SimpleList/header.js+++ b/apps/mobile/src/components/SimpleList/header.js@@ -20,6 +20,7 @@ export const Header = ({onPress,shouldShow = false,icon,+ screen}) => {const [state] = useTracked();const {colors} = state;@@ -70,7 +71,7 @@ export const Header = ({color={COLORS_NOTE[title.toLowerCase()] || colors.accent}w={normalize(150)}h={normalize(150)}- type={type}+ type={screen === "Favorites" ? "favorites" : type}/></View>diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.jsindex 088a80990..ba6ec0b09 100644--- a/apps/mobile/src/components/SimpleList/index.js+++ b/apps/mobile/src/components/SimpleList/index.js@@ -178,6 +178,7 @@ const SimpleList = ({type={dataType}index={index}data={listData}+ screen={screen}/>);case 'header':