Commit 2cd2b97c authored by Neosoulink's avatar Neosoulink
Browse files

refactor: code update

parent 3d8697a7
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -38,8 +38,6 @@ function HomeScreen({}) {
	const USER_DATA = useAppSelector(getUserData);
	const VIEW_TYPE = useAppSelector(getProductViewType);

	// STATES

	// DATA
	const PRODUCTS_QUERY_ARGS_INTERFACE: ProductsQueryArgsInterface = {
		geoLocation: {
@@ -100,16 +98,14 @@ function HomeScreen({}) {
							PRODUCTS_QUERY_RESPONSE.data
								?.geoLocationProductsByPaging
						}
						renderItem={({ item, index }) => {
							return (
						renderItem={({ item, index }) => (
							<View style={styles.productItemContainer}>
								<ProductItem
									type={VIEW_TYPE}
									data={{ ...item, id: index }}
								/>
							</View>
							);
						}}
						)}
						keyExtractor={(_item, _index) => _index.toString()}
						style={{ ...GS.h100 }}
					/>