Unverified Commit 0b56372e authored by benguedj's avatar benguedj Committed by GitHub
Browse files

feat: 🎸 Ajoute "Laisser un avis" dans le menu (#708)



 Closes: #488
Co-authored-by: default avatarBenjamin Guedj <benjaminguedj@hotmail.fr>
parent 5346a09e
......@@ -17,7 +17,8 @@ import {
Sizes,
} from "../../constants";
import { emailContact } from "../../constants/email.constants";
import type { MenuItem } from "../../types";
import { reviewTypeForm } from "../../constants/links.constants";
import type { MenuItem, RootStackParamList } from "../../types";
import Icomoon, { IcomoonIcons } from "../base/icomoon.component";
import { View } from "../Themed";
import Accessibility from "./accessibility.component";
......@@ -27,7 +28,7 @@ import LegalNotice from "./legalNotice.component";
interface Props {
showMenu: boolean;
setShowMenu: (showMenu: boolean) => void;
navigation: NavigationContainerRef | null;
navigation: NavigationContainerRef<RootStackParamList> | null;
}
const Menu: React.FC<Props> = ({ showMenu, setShowMenu, navigation }) => {
......@@ -36,6 +37,13 @@ const Menu: React.FC<Props> = ({ showMenu, setShowMenu, navigation }) => {
const [showAccessibility, setShowAccessibility] = React.useState(false);
const menuItems: MenuItem[] = [
{
icon: IcomoonIcons.modifier,
onPress: () => {
void Linking.openURL(reviewTypeForm);
},
title: Labels.menu.addReview,
},
{
icon: IcomoonIcons.profil,
onPress: () => {
......
......@@ -63,7 +63,6 @@ export default {
},
],
title: "Proposer un lieu",
title: "Proposer un lieu",
},
title: "Autour de moi",
},
......@@ -392,6 +391,7 @@ export default {
mandatoryField: "Ce champ est obligatoire",
menu: {
accessibility: "Accessibilité",
addReview: "Laisser un avis",
conditionsOfUse: "Politiques de confidentialité",
contactUs: "Nous écrire",
legalNotice: "Mentions légales",
......
export const reviewTypeForm = "https://startupdetat.typeform.com/to/kdw7bOcv";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment