Rename all french to english

This commit is contained in:
pikiou
2021-12-08 10:46:53 +01:00
parent d63f906206
commit 1844c6acad
66 changed files with 653 additions and 625 deletions

View File

@@ -0,0 +1,35 @@
/**
* @jest-environment jsdom
*/
import { render } from "@testing-library/react"
import { MemoryRouter } from "react-router-dom"
import VolunteerInfo from "../index"
describe("<VolunteerInfo />", () => {
it("renders", () => {
const tree = render(
<MemoryRouter>
<VolunteerInfo
item={{
id: 1,
firstname: "Aupeix",
lastname: "Amélie",
email: "pakouille.lakouille@yahoo.fr",
mobile: "0675650392",
photo: "images/volunteers/$taille/amélie_aupeix.jpg",
food: "Végétarien",
adult: 1,
privileges: 0,
active: 0,
comment: "",
timestamp: "0000-00-00",
password: "$2y$10$fSxY9AIuxSiEjwF.J3eXGubIxUPkdq9d5fqpbl8ASimSjNj4SR.9O",
}}
/>
</MemoryRouter>
).container.firstChild
expect(tree).toMatchSnapshot()
})
})

View File

@@ -0,0 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<VolunteerInfo /> renders 1`] = `
<div
class="VolunteerCard"
>
<h4>
Volunteer Info
</h4>
<ul>
<li>
Prénom:
Aupeix
</li>
<li>
Nom:
Amélie
</li>
</ul>
</div>
`;

View File

@@ -0,0 +1,20 @@
import { memo } from "react"
import { Volunteer } from "../../services/volunteers"
import styles from "./styles.module.scss"
interface Props {
item: Volunteer
}
const VolunteerInfo = ({ item }: Props) => (
<div className={styles.VolunteerCard}>
<h4>Volunteer Info</h4>
<ul>
<li>Prénom: {item.firstname}</li>
<li>Nom: {item.lastname}</li>
</ul>
</div>
)
export default memo(VolunteerInfo)

View File

@@ -0,0 +1,9 @@
.volunteer-card {
ul {
padding-left: 17px;
}
li {
margin-bottom: 0.5em;
}
}