feat: cleaner name select

proto-module-actu-react
Jalil Arfaoui 2023-02-07 01:09:13 +01:00
parent 9f2f33cb87
commit 8177706ed0
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import React from 'react'
import ReactDOM from 'react-dom/client'
import {Outlet} from "react-router";
import {createHashRouter, RouterProvider} from "react-router-dom"
import {ListeResistants, resistantsLoader} from "./routes/ListeResistants"
import {ListeResistants, resistantsLoader} from "./routes/Liste"
import NotFound from "./routes/NotFound";
import { PageResistant } from "./routes/PageResistant";
import './style/SquareSpace/vars.css'

View File

@ -2,8 +2,9 @@ import React from "react";
import {Outlet, useLoaderData} from "react-router";
import {ResistantRow} from "../ResistantRow";
import {Resistant} from "../../Resistant";
import {Group} from "@mantine/core";
import {Group, TextInput} from "@mantine/core";
import {FiltreDepartement} from "./FiltreDepartement";
import {IconUsers} from "@tabler/icons-react";
export const resistantsLoader = async () => {
const spreadsheetId = '1GL1MBChnwNn0t8WtKK5M3PbtCJ_bTJRhoTwAI9jeWck'
@ -29,8 +30,7 @@ export const ListeResistants = () => {
<>
<div id="listeResistants">
<Group>
Nom: <input type="text" name="nom" value={nom} onChange={filtreNom}/>
&nbsp;
<TextInput icon={<IconUsers />} placeholder="Nom" onChange={filtreNom}/>
<FiltreDepartement onChange={setDepartement}/>
</Group>