diff --git a/src/Firebase/firebase.js b/src/Firebase/firebase.js index 37fd6aa..6361a0a 100644 --- a/src/Firebase/firebase.js +++ b/src/Firebase/firebase.js @@ -502,7 +502,7 @@ export const getProjects = async () => { const response = await axios.get( `${process.env.REACT_APP_BACKEND_URL}/api/project?key=${Math.random()}` ); - // // console.log(response.data) + // console.log(response.data) return response.data; }; export const getDevelopers = async () => { @@ -730,6 +730,7 @@ export const addSkills = async (skill) => { export const getTags = async () => { const data = []; const tags = await firebase.firestore().collection("tags").doc("tags").get(); + console.log(tags) // .then((snapshot) => { // if (snapshot.docs.length > 0) { // snapshot.docs.forEach((doc) => { diff --git a/src/Pages/Developers/Developers.js b/src/Pages/Developers/Developers.js index 6a8ad73..45e41bb 100644 --- a/src/Pages/Developers/Developers.js +++ b/src/Pages/Developers/Developers.js @@ -63,9 +63,9 @@ const Developers = () => { setBranch, yop, setYop, - width, + // width, currentWidth, - setcurrentWidth, + // setcurrentWidth, } = useContext(ThemeContext); const [selectedSkills, setSelectedSkills] = useState([]); const [pages, setPages] = useState(0); @@ -94,15 +94,15 @@ const Developers = () => { setBranch(oldBranch); }; - useEffect(() => { - window.addEventListener("resize", changedWidth); - function changedWidth(e) { - setcurrentWidth(window.innerWidth); - } - return () => { - window.removeEventListener("resize", changedWidth); - }; - }, [width, setcurrentWidth]); + // useEffect(() => { + // window.addEventListener("resize", changedWidth); + // function changedWidth(e) { + // setcurrentWidth(window.innerWidth); + // } + // return () => { + // window.removeEventListener("resize", changedWidth); + // }; + // }, [width, setcurrentWidth]); // const getDevs = async () => { // // await getDevelopers().then(async function (snapshot) { // // let messageObject = snapshot.docs(); @@ -142,7 +142,7 @@ const Developers = () => { developers === null ) { // console.log(developers) - console.log("loading"); + // console.log("loading"); } else { filterDevelopers( developers, @@ -155,7 +155,7 @@ const Developers = () => { setLoading1 ); } - console.log("running"); + // console.log("running"); }, [selectedSkills, branch, yop, page]); const history = useHistory(); @@ -163,6 +163,7 @@ const Developers = () => { const handleClick = (u) => { history.push(`/developers/${u.id}`); }; + const [open, setOpen] = React.useState(false); if (loading || loading1 || users === null) { return ( @@ -178,7 +179,7 @@ const Developers = () => {