mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
cleanup
This commit is contained in:
@@ -137,7 +137,6 @@ export const ActionSheetTagsSection = ({item, close}) => {
|
|||||||
t.title.startsWith(query) && !note.tags.find((n) => n === t.title),
|
t.title.startsWith(query) && !note.tags.find((n) => n === t.title),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
console.log(note.tags);
|
|
||||||
_suggestions = tags
|
_suggestions = tags
|
||||||
.sort(function (x, y) {
|
.sort(function (x, y) {
|
||||||
return x.dateEdited - y.dateEdited;
|
return x.dateEdited - y.dateEdited;
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ const ColorItem = ({item, index}) => {
|
|||||||
const [headerTextState, setHeaderTextState] = useState(null);
|
const [headerTextState, setHeaderTextState] = useState(null);
|
||||||
|
|
||||||
const onHeaderStateChange = (event) => {
|
const onHeaderStateChange = (event) => {
|
||||||
console.log(event);
|
|
||||||
if (event.id === item.id) {
|
if (event.id === item.id) {
|
||||||
console.log('here');
|
|
||||||
setHeaderTextState(event);
|
setHeaderTextState(event);
|
||||||
} else {
|
} else {
|
||||||
setHeaderTextState(null);
|
setHeaderTextState(null);
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ export const UserSection = ({noTextMode}) => {
|
|||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
const {colors, syncing, user, lastSynced} = state;
|
const {colors, syncing, user, lastSynced} = state;
|
||||||
|
|
||||||
console.log(lastSynced);
|
|
||||||
return user && user?.email ? (
|
return user && user?.email ? (
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ const SimpleList = ({
|
|||||||
);
|
);
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
|
|
||||||
const {width, fontScale} = useWindowDimensions();
|
const {width, fontScale,height} = useWindowDimensions();
|
||||||
|
|
||||||
const listData = data;
|
const listData = data;
|
||||||
const dataType = type;
|
const dataType = type;
|
||||||
@@ -131,7 +131,7 @@ const SimpleList = ({
|
|||||||
style={[
|
style={[
|
||||||
{
|
{
|
||||||
backgroundColor: colors.bg,
|
backgroundColor: colors.bg,
|
||||||
height: dHeight - 250 - insets.top,
|
height: height - 250 - insets.top,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
},
|
},
|
||||||
]}>
|
]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user