mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
hide header button if logged in
This commit is contained in:
@@ -221,7 +221,7 @@ const SimpleList = ({
|
|||||||
height: 40,
|
height: 40,
|
||||||
borderRadius: 0,
|
borderRadius: 0,
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
}}>
|
}}>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
width: 25,
|
width: 25,
|
||||||
@@ -286,12 +286,10 @@ const SimpleList = ({
|
|||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
||||||
const _listKeyExtractor = (item, index) =>
|
|
||||||
item.type === 'header' ? item.title : item.id.toString() + index.toString();
|
|
||||||
|
|
||||||
const _layoutProvider = new LayoutProvider(
|
const _layoutProvider = new LayoutProvider(
|
||||||
(index) => {
|
(index) => {
|
||||||
console.log(dataProvider.getDataForIndex(index).type, 'TYPE');
|
|
||||||
return dataProvider.getDataForIndex(index).type;
|
return dataProvider.getDataForIndex(index).type;
|
||||||
},
|
},
|
||||||
(type, dim) => {
|
(type, dim) => {
|
||||||
@@ -318,7 +316,7 @@ const SimpleList = ({
|
|||||||
break;
|
break;
|
||||||
case 'MAIN_HEADER':
|
case 'MAIN_HEADER':
|
||||||
dim.width = width;
|
dim.width = width;
|
||||||
dim.height = 40;
|
dim.height =user || !data[0] || selectionMode ? 0: 40;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dim.width = width;
|
dim.width = width;
|
||||||
|
|||||||
Reference in New Issue
Block a user