Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The series of updates in this PR will solve dependency installation and project build issues #93

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
fa105bb
- install the dependencies and update by using "yarn upgrade-interact…
ARS-coding Jan 9, 2024
395c127
solve "JSX props should not use functions react/jsx-no-bind" for Edi…
ARS-coding Jan 9, 2024
35f39df
solve "JSX props should not use functions react/jsx-no-bind" for Nei…
ARS-coding Jan 9, 2024
67f5030
solve "JSX props should not use functions react/jsx-no-bind" for Nei…
ARS-coding Jan 9, 2024
4ef762e
solve "JSX props should not use functions react/jsx-no-bind" for Not…
ARS-coding Jan 9, 2024
93b044e
solve "JSX props should not use functions react/jsx-no-bind" for Sig…
ARS-coding Jan 9, 2024
4ef796f
solve "JSX props should not use functions react/jsx-no-bind" for Sig…
ARS-coding Jan 9, 2024
dd70237
solve "A control must be associated with a text label jsx-a11y/contr…
ARS-coding Jan 9, 2024
302c509
solve "A control must be associated with a text label jsx-a11y/contr…
ARS-coding Jan 9, 2024
993caef
solve "A control must be associated with a text label jsx-a11y/contr…
ARS-coding Jan 9, 2024
9457194
I've fixed the proglem of me unintentionally writing useSelector inst…
ARS-coding Jan 9, 2024
37acad8
update snapshots of component snapshot tests
ARS-coding Jan 9, 2024
4c0abc5
Merge pull request #3 from ARS-coding/1-update-to-the-dependencies-to…
ARS-coding Jan 9, 2024
bf3240e
change the react-hook-fdrm version from '^7.14.2' to '7.45.4'
ARS-coding Jan 9, 2024
8d89a4c
Merge pull request #4 from ARS-coding/1-update-to-the-dependencies-to…
ARS-coding Jan 9, 2024
8a2503f
add google analytics 4 tag
ARS-coding Apr 6, 2024
0c8adce
Merge pull request #5 from ARS-coding/1-update-to-the-dependencies-to…
ARS-coding Apr 6, 2024
da5bf98
add .nvmrc
ARS-coding Apr 6, 2024
d363acb
pass NODE_OPTIONS='--openssl-legacy-provider' env variable to start a…
ARS-coding Apr 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.20.1
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": true,
"eslint.alwaysShowStatus": true,
"files.autoSave": "onFocusChange",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"react": "^17.0.2",
"react-bootstrap": "2.0.0-beta.0",
"react-dom": "^17.0.2",
"react-hook-form": "^7.14.2",
"react-hook-form": "7.45.4",
"react-i18next": "^11.11.4",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
Expand All @@ -32,8 +32,8 @@
"uuid": "^8.3.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"start": "NODE_OPTIONS='--openssl-legacy-provider' react-scripts start",
"build": "NODE_OPTIONS='--openssl-legacy-provider' react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
17 changes: 13 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google analytics 4 tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-70C9VF2K54"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-70C9VF2K54');
</script>

<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<meta name="description" content="Web site created using create-react-app" />
<link
rel="icon"
type="image/x-icon"
Expand Down
6 changes: 3 additions & 3 deletions src/components/EditProfileModal/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useCallback } from "react";

import { Modal, Button, Card } from "react-bootstrap";

Expand Down Expand Up @@ -31,9 +31,9 @@ const EditProfileModal = () => {
const { district } = firestoreDoc;
const { uid } = authCred;

function toggleEditProfileModal() {
const toggleEditProfileModal = useCallback(() => {
dispatch({ type: "editProfile" });
}
}, [dispatch]);

const validate = (values) => {
const errors = {};
Expand Down
14 changes: 7 additions & 7 deletions src/components/FAQ/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ exports[`FAQ Section renders Features section correctly 1`] = `
className="first-column d-flex flex-column justify-content-center align-items-start col-md-6 col-sm-12 col-12"
>
<h2>
FAQs
global_FAQ
</h2>
<h5>
Are meetings safe?
global_safety
</h5>
<p>
For this important topic, we have collaborated with popular cafes and places all around of Istanbul so that our neighbours would be able to meet with each other without worries.
global_safety-text
</p>
<h5>
What is the point?
global_the_point
</h5>
<p>
More than 264 million people suffer from depression worldwide and with quarantine, it was not getting any better. That’s why it’s so important for us to solve the problem of people feeling more and more isolated as time progresses. We care about you, and would like you to care about your neighbour so that, we could be a stronger community.
global_the_point_text
</p>
<h5>
How does all of this work?
global_how_it_works
</h5>
<p>
With the data that you provide in your profile, we are carefully filtering neighbours that you may want to meet and network with.
global_how_it_works_text
</p>
</div>
<div
Expand Down
14 changes: 7 additions & 7 deletions src/components/FAQContent/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ exports[`FAQContent Section renders Features section correctly 1`] = `
className="first-column d-flex flex-column justify-content-center align-items-start col-md-6 col-sm-12 col-12"
>
<h2>
FAQs
global_FAQ
</h2>
<h5>
Are meetings safe?
global_safety
</h5>
<p>
For this important topic, we have collaborated with popular cafes and places all around of Istanbul so that our neighbours would be able to meet with each other without worries.
global_safety-text
</p>
<h5>
What is the point?
global_the_point
</h5>
<p>
More than 264 million people suffer from depression worldwide and with quarantine, it was not getting any better. That’s why it’s so important for us to solve the problem of people feeling more and more isolated as time progresses. We care about you, and would like you to care about your neighbour so that, we could be a stronger community.
global_the_point_text
</p>
<h5>
How does all of this work?
global_how_it_works
</h5>
<p>
With the data that you provide in your profile, we are carefully filtering neighbours that you may want to meet and network with.
global_how_it_works_text
</p>
</div>
<div
Expand Down
14 changes: 7 additions & 7 deletions src/components/Features/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`Features Section renders Features section correctly 1`] = `
className="features-content-container d-flex flex-column justify-content-center container"
>
<h2>
Features
features_title
</h2>
<div
className="features-content-row d-md-flex justify-content-md-around text-center row"
Expand All @@ -27,12 +27,12 @@ exports[`Features Section renders Features section correctly 1`] = `
<div
className="card-title h5"
>
Meet
features_title_meet
</div>
<p
className="card-text"
>
Find people in your neighborhood and expand your network.
features_title_meet_text
</p>
</div>
</div>
Expand All @@ -50,12 +50,12 @@ exports[`Features Section renders Features section correctly 1`] = `
<div
className="card-title h5"
>
Filtering
features_title_message
</div>
<p
className="card-text"
>
Filter nearby people by their age, gender and interests.
features_title_message_text
</p>
</div>
</div>
Expand All @@ -73,12 +73,12 @@ exports[`Features Section renders Features section correctly 1`] = `
<div
className="card-title h5"
>
Coupons
features_title_coupons
</div>
<p
className="card-text"
>
Get coupons from our sponsored places and pay less.
features_title_coupons_text
</p>
</div>
</div>
Expand Down
22 changes: 15 additions & 7 deletions src/components/Footer/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,40 @@ exports[`Footer Section renders Footer section correctly 1`] = `
href="/our-team"
onClick={[Function]}
>
Our Team
footer_team
</a>
<a
className="mx-3"
href="/contact-us"
onClick={[Function]}
>
Contact Us
footer_contact
</a>
<a
href="/faq"
onClick={[Function]}
>
FAQ
footer_faq
</a>
</div>
<div
className="d-flex justify-content-center align-items-center my-2 my-sm-2 my-sm-0 col-md-4 col-sm-12 col-12"
>
<p>
Copyright © Re:Coded 2021
</p>
<div
className="d-flex flex-column justify-content-center align-items-center"
>
<p>
footer_copyright
</p>
</div>
</div>
<div
className="social-media-logos d-flex justify-content-center justify-content-sm-center justify-content-md-end align-items-center col-md-4 col-sm-12 col-12"
>
<div />
<a
href="https://twitter.com"
aria-label="Twitter Logo"
href="https://www.twitter.com"
rel="external noreferrer"
target="_blank"
>
Expand All @@ -53,6 +59,7 @@ exports[`Footer Section renders Footer section correctly 1`] = `
</svg>
</a>
<a
aria-label="Instagram Logo"
href="https://www.instagram.com"
rel="external noreferrer"
target="_blank"
Expand All @@ -62,6 +69,7 @@ exports[`Footer Section renders Footer section correctly 1`] = `
</svg>
</a>
<a
aria-label="Facebook Logo"
href="https://www.facebook.com"
rel="external noreferrer"
target="_blank"
Expand Down
3 changes: 3 additions & 0 deletions src/components/Footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,23 @@ function Footer() {
href="https://www.twitter.com"
target="_blank"
rel="external noreferrer"
aria-label="Twitter Logo"
>
<TwitterLogo />
</a>
<a
href="https://www.instagram.com"
target="_blank"
rel="external noreferrer"
aria-label="Instagram Logo"
>
<InstagramLogo />
</a>
<a
href="https://www.facebook.com"
target="_blank"
rel="external noreferrer"
aria-label="Facebook Logo"
>
<FacebookLogo />
</a>
Expand Down
6 changes: 3 additions & 3 deletions src/components/NeighborCard/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ exports[`NeighborCard renders NeighborCard correctly 1`] = `
<small
className="text-center"
>
test / test
test /
</small>
<button
className="sc-bdnxRM sc-fujyAs hPJaof PaHUc"
className="sc-aXZVg sc-imWYAI fNOrQy czbMBo"
onClick={[Function]}
>
Invite To Meet!
neighborcards_button
</button>
</div>
</div>
Expand Down
17 changes: 12 additions & 5 deletions src/components/NeighborCard/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useCallback } from "react";

import { Card } from "react-bootstrap";

Expand Down Expand Up @@ -36,7 +36,7 @@ function NeighborCard({
const { t } = useTranslation();
const { language: currentLanguage } = i18next;

function sendEmail() {
const sendEmail = useCallback(() => {
setEmailAlertStatus("empty");
send("service_9rwjsp6", "template_qlu5ttf", {
from_name: senderFullName,
Expand All @@ -46,9 +46,16 @@ function NeighborCard({
})
.then(() => setEmailAlertStatus("success"))
.catch(() => setEmailAlertStatus("danger"));
}
}, [
email,
firstName,
lastName,
senderEmail,
senderFullName,
setEmailAlertStatus,
]);

function handleInvitation() {
const handleInvitation = useCallback(() => {
sendEmail();
firestore
.collection("users")
Expand All @@ -74,7 +81,7 @@ function NeighborCard({
id: uuidv4(),
}),
});
}
}, [email, firstName, lastName, sendEmail, senderFullName, uid]);

return (
<Card className="neighbor-card mb-2 mx-auto">
Expand Down
Loading