Skip to content

Commit

Permalink
Cleanup v2
Browse files Browse the repository at this point in the history
  • Loading branch information
stoneliuCS committed Dec 15, 2024
1 parent c4b13e9 commit 6555d50
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
6 changes: 3 additions & 3 deletions backend/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const config = {
name: AWS_BUCKET_NAME,
region: AWS_BUCKET_REGION,
},
imagekit : {
key : IMAGE_KIT
}
imagekit: {
key: IMAGE_KIT,
},
};
4 changes: 1 addition & 3 deletions backend/src/services/s3Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ export class S3ServiceImpl implements S3Service {
});
try {
await this.client.send(command);
const url = encodeURI(
config.imagekit.key + fileKey
);
const url = encodeURI(config.imagekit.key + fileKey);
return url;
} catch (error) {
console.error('Error uploading file:', error);
Expand Down
10 changes: 5 additions & 5 deletions frontend/app/(app)/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ const Home = () => {
key="following-divelogs"
showsVerticalScrollIndicator={false}
onEndReached={() => {
loadMorePosts(fetchNextPageFollowing, hasNextPageFollowing)}
}
loadMorePosts(fetchNextPageFollowing, hasNextPageFollowing);
}}
onEndReachedThreshold={0.3}
ListFooterComponent={
<View className="mt-10">
<DiveLogSkeleton />
</View>
<DiveLogSkeleton />
</View>
}
contentContainerStyle={{ paddingBottom: 150 }}
ItemSeparatorComponent={() => <View className="h-12" />}
Expand Down Expand Up @@ -272,7 +272,7 @@ const Home = () => {

return (
<ScrollView
className = "mb-20"
className="mb-20"
showsVerticalScrollIndicator={false}
onScroll={(e) => {
const contentHeight = e.nativeEvent.contentSize.height;
Expand Down
3 changes: 2 additions & 1 deletion frontend/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const InitialLayout = () => {
}, [isAuthenticated]);

useEffect(() => {
const permission = async () => await Notifications.requestPermissionsAsync();
const permission = async () =>
await Notifications.requestPermissionsAsync();
permission();
}, []);

Expand Down
7 changes: 1 addition & 6 deletions frontend/components/image-picker.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { useEffect, useState } from 'react';
import {
Image,
TouchableOpacity,
View,
Text,
} from 'react-native';
import { Image, TouchableOpacity, View, Text } from 'react-native';
import * as ExpoImagePicker from 'expo-image-picker';
import { useFormContext } from 'react-hook-form';
import { Photo } from '../types/divelog';
Expand Down

0 comments on commit 6555d50

Please sign in to comment.