This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {useFocusEffect} from '@react-navigation/native'; | |
import {Box, IconButton, Text} from 'components'; | |
import {Theme} from 'core/styles'; | |
import {useGetSessions} from 'hooks'; | |
import useInAppPurchase from 'hooks/iap'; | |
import LottieView from 'lottie-react-native'; | |
import {useAppNavigation} from 'navigation/hooks/useAppNavigation'; | |
import {useAuth} from 'pods/auth/context'; | |
import {useOnboarding} from 'pods/onboarding/context'; | |
import {SoundEquilizer} from 'pods/session/assets'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useCallback, useEffect} from 'react'; | |
import { | |
Text, | |
View, | |
StyleSheet, | |
TouchableOpacity, | |
ActivityIndicator, | |
ImageBackground, | |
GestureResponderEvent, | |
useWindowDimensions, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useEffect, useRef, useState} from 'react'; | |
import {useSafeAreaInsets} from 'react-native-safe-area-context'; | |
import { | |
Canvas, | |
RoundedRect, | |
RadialGradient, | |
BackdropBlur, | |
Fill, | |
vec, | |
Rect, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ANIMATION_DURATION = 1000; | |
const ImageView = ({ url }: { url: string }) => { | |
return ( | |
<Reanimated.Image | |
source={{ uri: url }} | |
style={[styles.video]} | |
exiting={FadeOut.duration(ANIMATION_DURATION)} | |
/> | |
); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import {Box, Text, TouchableOpacity} from '@components/atoms'; | |
import {CollapsibleBox, RotaryIcon, ShadowBox} from '@components/molecules'; | |
import {useSwitch} from '@hooks'; | |
import {useTheme} from '@theme'; | |
import {DashboardServiceItem} from '@types'; | |
import ChevronUp from '@svg/chevron-up.svg'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useCallback} from 'react'; | |
import {Alert} from 'react-native'; | |
import {GUIDES} from '@features/guide/const'; | |
import {useTranslations} from '@hooks'; | |
import {RootStackScreenProps, RouteNames} from '@navigation'; | |
import { | |
setShouldRefresh, | |
useAppDispatch, | |
useAwardConsultantMutation, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable react-hooks/exhaustive-deps */ | |
import React, {useEffect} from 'react'; | |
import {Box, Text} from '@components/atoms'; | |
import {Divider} from '@components/molecules'; | |
import {useOnboarding} from '@features/home/hooks'; | |
import { | |
useDataRefetch, | |
useDateFormatter, | |
useSteps, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import {Box, Text, TouchableOpacity} from '@components/atoms'; | |
import {CollapsibleBox, RotaryIcon, ShadowBox} from '@components/molecules'; | |
import {useSwitch} from '@hooks'; | |
import {useTheme} from '@theme'; | |
import {DashboardServiceItem} from '@types'; | |
import ChevronUp from '@svg/chevron-up.svg'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {Box} from '@components/atoms'; | |
import {Divider} from '@components/molecules'; | |
import {getServiceStatus} from '@features/journey/utils'; | |
import {useSteps, useTranslations} from '@hooks'; | |
import {OptionItem} from '@types'; | |
import {JourneyBlock, Service} from '../organisms'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function addClubsStoragePolicy() { | |
const policyQuery = ` | |
CREATE POLICY "clubs_custom_policy" | |
ON storage.objects | |
FOR SELECT USING ( | |
(bucket_id = 'clubs'::text) AND | |
(EXISTS ( | |
SELECT 1 | |
FROM (permissions | |
JOIN users ON ((users.id = permissions.user_id))) |
NewerOlder