feat: cleaner name select
parent
9f2f33cb87
commit
8177706ed0
|
@ -2,7 +2,7 @@ import React from 'react'
|
||||||
import ReactDOM from 'react-dom/client'
|
import ReactDOM from 'react-dom/client'
|
||||||
import {Outlet} from "react-router";
|
import {Outlet} from "react-router";
|
||||||
import {createHashRouter, RouterProvider} from "react-router-dom"
|
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 NotFound from "./routes/NotFound";
|
||||||
import { PageResistant } from "./routes/PageResistant";
|
import { PageResistant } from "./routes/PageResistant";
|
||||||
import './style/SquareSpace/vars.css'
|
import './style/SquareSpace/vars.css'
|
||||||
|
|
|
@ -2,8 +2,9 @@ import React from "react";
|
||||||
import {Outlet, useLoaderData} from "react-router";
|
import {Outlet, useLoaderData} from "react-router";
|
||||||
import {ResistantRow} from "../ResistantRow";
|
import {ResistantRow} from "../ResistantRow";
|
||||||
import {Resistant} from "../../Resistant";
|
import {Resistant} from "../../Resistant";
|
||||||
import {Group} from "@mantine/core";
|
import {Group, TextInput} from "@mantine/core";
|
||||||
import {FiltreDepartement} from "./FiltreDepartement";
|
import {FiltreDepartement} from "./FiltreDepartement";
|
||||||
|
import {IconUsers} from "@tabler/icons-react";
|
||||||
|
|
||||||
export const resistantsLoader = async () => {
|
export const resistantsLoader = async () => {
|
||||||
const spreadsheetId = '1GL1MBChnwNn0t8WtKK5M3PbtCJ_bTJRhoTwAI9jeWck'
|
const spreadsheetId = '1GL1MBChnwNn0t8WtKK5M3PbtCJ_bTJRhoTwAI9jeWck'
|
||||||
|
@ -29,8 +30,7 @@ export const ListeResistants = () => {
|
||||||
<>
|
<>
|
||||||
<div id="listeResistants">
|
<div id="listeResistants">
|
||||||
<Group>
|
<Group>
|
||||||
Nom: <input type="text" name="nom" value={nom} onChange={filtreNom}/>
|
<TextInput icon={<IconUsers />} placeholder="Nom" onChange={filtreNom}/>
|
||||||
|
|
||||||
<FiltreDepartement onChange={setDepartement}/>
|
<FiltreDepartement onChange={setDepartement}/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue