Skip to content
Snippets Groups Projects
Commit b74fdedd authored by lfr20's avatar lfr20
Browse files

Nothing chnged

parent d593ea78
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!40merge admin into develop,!37Merge sistema_admin into Update_Admin_System
......@@ -121,20 +121,27 @@ const Institutions = () => {
const [description, setDescription] = useState("");
const CityHandler = () => {
setShowCityField(!showCityField);
console.log(showCityField);
setShowCityField(!showCityField);
setApi(apiUrl + "/institutions")
UpdtateListData(api)
};
const CountryHandler = () => {
setShowCountryField(!showContryField);
setApi(apiUrl + "/institutions")
UpdtateListData(api)
};
const DescHandler = () => {
setShowDescriptionField(!showDescriptionField);
setApi(apiUrl + "/institutions")
UpdtateListData(api)
};
const StandartHandler = () => {
setShowStandarSearchField(!showStandadSearch);
setApi(apiUrl + "/institutions")
UpdtateListData(api)
};
const handleClick = (event) => {
......@@ -161,11 +168,11 @@ const Institutions = () => {
const onChangeCityHandler = (e) => {
setCity(e.target.value);
if (city.length === 0) {
UpdtateListData(api)
UpdtateListData(`${apiUrl}/institutions`)
} else {
setApi(BuildFilter('city', 'institutions', city))
UpdtateListData(api)
}
}
};
const onChangeCountryHandler = (e) => {
......@@ -512,6 +519,7 @@ const Institutions = () => {
<TableData top={topTable}>
<TableBody>
{items.map((row, index) => (
<StyledTableRow key={index}>
<StyledTableCell component="th" scope="row">
{row.id}
......
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