Skip to content

Commit

Permalink
fix: require
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Jun 27, 2024
1 parent 89cd04f commit 199abd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions api/src/controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const { catchErrors } = require("../middlewares/errors");
const router = express.Router();
const prisma = require("../prisma");
const geoip = require("geoip-lite");
const { capture } = require("../third-parties/sentry");
const fetch = require("node-fetch");

router.put(
"/",
Expand Down
22 changes: 12 additions & 10 deletions app/src/scenes/Health/HealthIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ const HealthIndex = ({ navigation }) => {
</View>
</View>
<View className="h-56 w-full flex flex-row gap-4 justify-between mb-4 pt-2 pr-4 ">
<View className="border border-[#4030A5] bg-white w-1/2 rounded-md shadow-md">
<TouchableOpacity
className="flex items-center gap-6 p-8"
onPress={() => {
navigation.navigate('CONTACT');
}}>
<AppointmentHeart size={80} className="" />
{isWellLocated && <Text className="text-center">Prendre un RDV avec Doctolib</Text>}
</TouchableOpacity>
</View>
{isWellLocated && (
<View className="border border-[#4030A5] bg-white w-1/2 rounded-md shadow-md">
<TouchableOpacity
className="flex items-center gap-6 p-8"
onPress={() => {
navigation.navigate('CONTACT');
}}>
<AppointmentHeart size={80} className="" />
<Text className="text-center">Prendre un RDV avec Doctolib</Text>
</TouchableOpacity>
</View>
)}
<View className="border border-[#4030A5] bg-white w-1/2 rounded-md shadow-md">
<TouchableOpacity
className="flex items-center gap-6 p-8"
Expand Down

0 comments on commit 199abd5

Please sign in to comment.