diff --git a/assets/icons.tsx b/assets/icons.tsx index f01e5e1..5cae36e 100644 --- a/assets/icons.tsx +++ b/assets/icons.tsx @@ -9,6 +9,7 @@ export type IconType = | 'search_outline' | 'close_modal_button' | 'red_x' + | 'share_outline' | 'green_check' | 'hide_password' | 'grey_dot' diff --git a/src/app/(tabs)/home/index.tsx b/src/app/(tabs)/home/index.tsx index 89d2da1..2c8c0e3 100644 --- a/src/app/(tabs)/home/index.tsx +++ b/src/app/(tabs)/home/index.tsx @@ -190,7 +190,6 @@ function HomeScreen() { Recommended For You - tag and before the end of the

tag - const modifiedExcerpt = htmlContent - .replace(/

]*>/, match => `${match}“`) - .replace('

', '”

'); - console.log(typeof htmlContent); - - console.log('TESTING CONTENT', htmlContent); return ( {isLoading ? ( @@ -90,6 +81,7 @@ function StoryScreen() { ref={scrollRef} showsVerticalScrollIndicator={false} > + router.back()} /> {story?.featured_media ? ( index.toString()} // Add a key extractor for performance optimization + keyExtractor={(_, index) => index.toString()} // Add a key extractor for performance optimization renderItem={({ item, index }) => ( - + @@ -151,7 +146,8 @@ function StoryScreen() { Author's Process - + { } } -export async function fetchStoryPreviewById( - storyId: number, -): Promise { - const { data, error } = await supabase.rpc('curr_story_preview_by_id', { - input_story_id: storyId, - }); - if (error) { - console.log(error); - throw new Error( - `An error occured when trying to fetch story preview by ID: ${error}`, - ); - } else { - return data; - } -} - export async function fetchStoryPreviewByIds( storyIds: number[], ): Promise {