Skip to content

Commit

Permalink
toss unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan-cp committed May 10, 2024
1 parent 8cfde56 commit b66c6ed
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions apps/mobile/src/screens/NftDetailScreen/NftDetailSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ReactNativeZoomableView } from '@openspacelabs/react-native-zoomable-view';
import { RouteProp, useNavigation, useRoute } from '@react-navigation/native';
import { useColorScheme } from 'nativewind';
import { useCallback, useMemo, useRef, useState } from 'react';
Expand Down Expand Up @@ -47,7 +46,7 @@ type Props = {
queryRef: NftDetailSectionQueryFragment$key;
};

const { width, height } = Dimensions.get('window');
const { width } = Dimensions.get('window');

export function NftDetailSection({ onShare, queryRef }: Props) {
const route = useRoute<RouteProp<MainTabStackNavigatorParamList, 'NftDetail'>>();
Expand Down Expand Up @@ -105,7 +104,6 @@ export function NftDetailSection({ onShare, queryRef }: Props) {

const { colorScheme } = useColorScheme();
const [isLightboxOpen, setIsLightboxOpen] = useState(false);
const [isLightboxFullyOpen, setIsLightboxFullyOpen] = useState(false);

const token = query.tokenById;
const ownerWalletAddress =
Expand Down Expand Up @@ -238,14 +236,6 @@ export function NftDetailSection({ onShare, queryRef }: Props) {
setIsLightboxOpen(false);
};

const handleLightboxDidOpen = () => {
setIsLightboxFullyOpen(true);
};

const handleLightboxWillClose = () => {
setIsLightboxFullyOpen(false);
};

return (
<ScrollView>
<View className="flex flex-col space-y-3 px-4 pb-4">
Expand All @@ -269,9 +259,6 @@ export function NftDetailSection({ onShare, queryRef }: Props) {
<Lightbox
isOpen={isLightboxOpen}
onClose={handleCloseLightbox}
didOpen={handleLightboxDidOpen}
willClose={handleLightboxWillClose}
onLayout={() => setIsLightboxFullyOpen(false)}
onOpen={handleOpenLightbox}
backgroundColor={colors.black['800']}
swipeToDismiss={false}
Expand Down

0 comments on commit b66c6ed

Please sign in to comment.