about summary refs log tree commit diff
path: root/src/lib/icons.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-04-03 20:59:33 -0700
committerGitHub <noreply@github.com>2024-04-03 20:59:33 -0700
commit8e393b16f502ca201393d1fd585c870fee8a4fe9 (patch)
treef7132f60173434f9ae2344fa359f2a5e3b7446d1 /src/lib/icons.tsx
parentb1bd7ab6e3bd9226383b6eb979857564775435ad (diff)
downloadvoidsky-8e393b16f502ca201393d1fd585c870fee8a4fe9.tar.zst
Simplify list logic further to prevent misuse (#3334)
* simplify list logic further

more simplification

simplify by removing `isEmpty`

use `isFetchingNextPage` everywhere for clarity

change `isFetching` to `isFetchingNextPage` for clarity

remove some useless `useMemo`s

move `renderItem` and `keyExtractor` out of component

* clean bundle size check

* update deploy

* adjust

* adjust

* one test

* try now

* test it

* done
Diffstat (limited to 'src/lib/icons.tsx')
-rw-r--r--src/lib/icons.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/icons.tsx b/src/lib/icons.tsx
index 8783682d0..93b45ea3a 100644
--- a/src/lib/icons.tsx
+++ b/src/lib/icons.tsx
@@ -1,6 +1,6 @@
 import React from 'react'
 import {StyleProp, TextStyle, ViewStyle} from 'react-native'
-import Svg, {Path, Rect, Line, Ellipse} from 'react-native-svg'
+import Svg, {Ellipse, Line, Path, Rect} from 'react-native-svg'
 
 export function GridIcon({
   style,