minor fix

This commit is contained in:
ammarahm-ed
2020-02-03 12:21:38 +05:00
parent 4eb34327f3
commit 0ed20e5388

View File

@@ -20,6 +20,7 @@ import {
setColorScheme, setColorScheme,
SIZE, SIZE,
WEIGHT, WEIGHT,
ph,
} from '../../common/common'; } from '../../common/common';
import {useTracked} from '../../provider'; import {useTracked} from '../../provider';
import {ACTIONS} from '../../provider/actions'; import {ACTIONS} from '../../provider/actions';
@@ -565,21 +566,61 @@ export const ActionSheetComponent = ({
: null} : null}
</Text> </Text>
<Text {note.type !== 'notebook' ? null : (
style={{ <View
color: colors.accent, style={{
fontSize: SIZE.xs - 1, flexDirection: 'row',
textAlignVertical: 'center', alignItems: 'center',
fontFamily: WEIGHT.regular, justifyContent: 'center',
marginTop: 2, width: '100%',
borderWidth: 1, maxWidth: '100%',
textAlign: 'center', flexWrap: 'wrap',
borderColor: colors.accent, }}>
paddingHorizontal: 5, {note && note.topics
borderRadius: 2, ? note.topics.slice(1, 4).map(topic => (
}}> <View
Synced key={topic.dateCreated.toString() + topic.title}
</Text> style={{
borderRadius: 5,
backgroundColor: colors.accent,
paddingHorizontal: ph / 1.5,
paddingVertical: pv / 4,
marginRight: 5,
marginVertical: 2.5,
}}>
<Text
numberOfLines={1}
style={{
color: 'white',
fontFamily: WEIGHT.regular,
fontSize: SIZE.xxs,
maxWidth: '100%',
}}>
{topic.title}
</Text>
</View>
))
: null}
</View>
)}
{note.type !== 'note' ? null : (
<Text
style={{
color: colors.accent,
fontSize: SIZE.xs - 1,
textAlignVertical: 'center',
fontFamily: WEIGHT.regular,
marginTop: 2,
borderWidth: 1,
textAlign: 'center',
borderColor: colors.accent,
paddingHorizontal: 5,
borderRadius: 2,
}}>
Synced
</Text>
)}
</View> </View>
)} )}