Skip to content

Commit 9523da5

Browse files
authored
Merge pull request #168 from atlp-rwanda/ft-fetch-articles-data
Integrate Supabase for Article Fetching, Update Project Images, and Add Social Sharing Functionality
2 parents 2bae82e + 1d1cce6 commit 9523da5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3227
-4255
lines changed

.env.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare module '@env' {
2+
export const API_URL: string;
3+
export const APP_MAJOR_VERSION: string;
4+
export const APP_MINOR_VERSION: string;
5+
export const APP_PATCH_VERSION: string;
6+
}

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
EXPO_PUBLIC_API_URL=http://api.local
2-
EXPO_PUBLIC_API_KEY=api_key
2+
EXPO_PUBLIC_API_KEY=api_key
3+
4+
SUPABASE_URL=SUPABASE_URL
5+
SUPABASE_NON_KEY=SUPABASE_NON_KEY

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ node_modules/
77
dist/
88
web-build/
99
.env
10+
.env.example
1011

1112
# Native
1213
*.orig.*

app/(app)/ActionMenu/AllDoctorScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function DoctorScreen() {
9292
}
9393
setDoctors(data)
9494

95-
console.log('Fetched data:', data);
95+
// console.log('Fetched data:', data);
9696
}
9797

9898
fetchData();

app/(app)/ActionMenu/FavoriteDoctorScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ function DoctorScreen() {
9191
}
9292
setDoctors(data)
9393

94-
console.log('Fetched data:', data);
9594
}
9695

9796
fetchData();

app/(app)/Appointments/MessagingAppointment/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
import { backArrowWhite } from "@/components/UI/icons/backArrow";
2626
import { WhiteMenuCircle } from "@/components/UI/icons/WhiteMenuCircle";
2727
import { MoreIcon } from "@/assets/icons/MoreCircleSvg";
28+
import { backArrowBlackIcon } from '@/constants/icon'
2829

2930
interface PatientType {
3031
id: string;
@@ -93,7 +94,7 @@ function AppointmentMessaging() {
9394
theme === "light" ? Colors.others.white : Colors.dark._1,
9495
}}
9596
>
96-
<SvgXml xml={backArrowWhite} />
97+
<SvgXml xml={theme === 'dark' ? backArrowWhite : backArrowBlackIcon } />
9798
<Text
9899
style={{
99100
fontSize: 24,

app/(app)/Appointments/Review/ReviewBlankform.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import {
5959
</Text>
6060
</View>
6161
<View style={{ gap: 24, justifyContent: "center", alignItems: "center" }}>
62-
<Image source={require("@/assets/images/Drake.png")} />
62+
<Image source={require("@/assets/images/Drake.png")} style={{width: 200, height: 200, borderRadius: 100}}/>
6363
<Text
6464
style={[
6565
Typography.heading._5,

app/(app)/Appointments/Review/ReviewScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const [rating, setRating ] = useState(0);
3737
</View>
3838

3939
<View>
40-
<Image source={require('@/assets/images/Drake.png')} />
40+
<Image source={require('@/assets/images/Drake.png')} style={{width: 200, height: 200, borderRadius: 100}}/>
4141
</View>
4242
<View style={{justifyContent:'center', alignItems: 'center'}}>
4343
<Text style={[Typography.heading._5, {color: theme === 'dark' ? '#FFFFFF' : '#212121', width: 260}]}>How was your experience

app/(app)/Appointments/VideoCallAppointment/VideoCall.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
<ImageBackground
1919
style={styles.Background}
2020
resizeMode="cover"
21-
source={require("@/assets/images/MariaBackblur.png")}
21+
source={require("@/assets/images/Dr maria.png")}
2222
>
2323
<View style={styles.backArrow}>
2424
<TouchableOpacity onPress={()=> router.back()}>
@@ -29,7 +29,7 @@ import {
2929

3030
<View style={styles.middlePart}>
3131
<View style={styles.patient}>
32-
<Image source={require('@/assets/images/SinglePatient.png')} />
32+
<Image source={require('@/assets/images/SinglePatient.png')} style={{width: 120, height: 180, borderRadius: 20}}/>
3333

3434
<TouchableOpacity style={{position:'relative', marginTop: '-27%',marginLeft: '72%'}}>
3535
<SvgXml xml={CameraIcon} />

app/(app)/Appointments/VideoCallAppointment/VideoCallRinging.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
</View>
2929

3030
<View style={styles.middlePart}>
31-
<Image source={require("@/assets/images/MariaEllipse.png")} />
31+
<Image source={require("@/assets/images/Dr jenny.png")} style={{width: 200, height: 200, borderRadius: 100}}/>
3232

3333
<View style={styles.middleText}>
3434
<Text style={[Typography.heading._3, { color: "#FFFFFF" }]}>

0 commit comments

Comments
 (0)