mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
minor fixes
This commit is contained in:
@@ -332,9 +332,9 @@ export const ActionSheetComponent = ({
|
||||
style={{
|
||||
color: colors.accent,
|
||||
}}>
|
||||
{tag.slice(0, 1)}
|
||||
#
|
||||
</Text>
|
||||
{tag.slice(1)}
|
||||
{tag}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
|
||||
@@ -331,7 +331,7 @@ export const Menu = ({
|
||||
onPress={() => {
|
||||
close();
|
||||
NavigationService.navigate('Notes', {
|
||||
heading: item.title,
|
||||
title: item.title,
|
||||
tag: item,
|
||||
type: 'tag',
|
||||
});
|
||||
|
||||
@@ -113,7 +113,14 @@ export const Header = ({
|
||||
color: colors.pri,
|
||||
fontFamily: WEIGHT.bold,
|
||||
}}>
|
||||
{heading}
|
||||
<Text
|
||||
style={{
|
||||
color: colors.accent,
|
||||
}}>
|
||||
{heading.slice(0, 1) === '#' ? '#' : null}
|
||||
</Text>
|
||||
|
||||
{heading.slice(0, 1) === '#' ? heading.slice(1) : heading}
|
||||
</Text>
|
||||
</View>
|
||||
<View
|
||||
|
||||
@@ -108,10 +108,12 @@ export const Notes = ({navigation}) => {
|
||||
<Container
|
||||
bottomButtonText="Create a new note"
|
||||
canGoBack={false}
|
||||
heading={params.title}
|
||||
heading={'#' + params.title}
|
||||
canGoBack={true}
|
||||
data={notes}
|
||||
placeholder={`Search in ${params.title}`}
|
||||
placeholder={`Search in ${
|
||||
params.type == 'tag' ? '#' + params.title : params.title
|
||||
}`}
|
||||
bottomButtonOnPress={() => {}}>
|
||||
<FlatList
|
||||
data={notes}
|
||||
|
||||
Reference in New Issue
Block a user