mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix pinned items not showing
This commit is contained in:
@@ -127,10 +127,10 @@ const SimpleList = ({
|
||||
? 155 - insets.top
|
||||
: 155 - 60 - insets.top,
|
||||
}}>
|
||||
{pinned && pinned.notebooks && pinned.notebooks.length > 0 ? (
|
||||
{pinned && pinned.length > 0 ? (
|
||||
<>
|
||||
<FlatList
|
||||
data={pinned.notebooks}
|
||||
data={pinned}
|
||||
keyExtractor={(item, index) => item.id.toString()}
|
||||
renderItem={({item, index}) =>
|
||||
item.type === 'notebook' ? (
|
||||
|
||||
@@ -141,7 +141,7 @@ export const Folders = ({navigation}) => {
|
||||
<NotebookPlaceHolder animation={slideRight} colors={colors} />
|
||||
</>
|
||||
}
|
||||
pinned={pinned}
|
||||
pinned={pinned.notebooks}
|
||||
placeholderText="Notebooks you add will appear here"
|
||||
/>
|
||||
</Container>
|
||||
|
||||
@@ -115,7 +115,7 @@ export const Home = ({navigation}) => {
|
||||
data={notes}
|
||||
type="notes"
|
||||
isHome={true}
|
||||
pinned={pinned}
|
||||
pinned={pinned.notes}
|
||||
refreshing={refreshing}
|
||||
focused={isFocused}
|
||||
onRefresh={_onRefresh}
|
||||
|
||||
Reference in New Issue
Block a user