Skip to content
Snippets Groups Projects
Verified Commit 20169cdf authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Rename type and add doc.

parent 426e16b6
No related branches found
No related tags found
2 merge requests!69Possibility to insert a reservation and new docs.,!68Implement list by date.
Pipeline #13271 passed
......@@ -6,15 +6,17 @@ import { getSeniorListByLastName } from 'api/getSeniorListByLastName';
import { SeniorSearchQueryType } from 'types/SeniorSearchQueryType';
import { getSeniorListByCard } from 'api/getSeniorListByCard';
type SeniorSearchProps = {
type PropType = {
senior: SeniorSearchQueryType | null;
setSenior: React.Dispatch<React.SetStateAction<SeniorSearchQueryType | null>>;
};
export const SeniorSearch: FC<SeniorSearchProps> = ({
senior,
setSenior,
}: SeniorSearchProps) => {
/**
* Search a senior by member card or by last name.
* @param {PropType} react action data for connecting this component.
* @returns
*/
export const SeniorSearch: FC<PropType> = ({ senior, setSenior }: PropType) => {
const [seniors, setSeniors] = useState<SeniorSearchQueryType[]>([]);
const [query, setQuery] = useState<string | number>('');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment