Skip to content

Commit 1b049d6

Browse files
committed
Fix errors and warnings
1 parent 4094798 commit 1b049d6

File tree

12 files changed

+119
-121
lines changed

12 files changed

+119
-121
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
build

src/assistant/assistant.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Form from 'react-bootstrap/Form';
33
import Button from 'react-bootstrap/esm/Button';
44
import LogoutNavBar from '../navbar/logoutnavbar';
55
import LoginNavBar from '../navbar/loginnavbar';
6-
import PlacesAutocomplete from '../locationpicker/auto';
6+
// import PlacesAutocomplete from '../locationpicker/auto';
77

88
export default function Assistant(props) {
99

@@ -60,7 +60,7 @@ export default function Assistant(props) {
6060
<Form onSubmit={handleSubmit} className="needs-validation" noValidate validated={validated}>
6161

6262
{/* <h5 className="border-bottom pb-2 mb-2">Request Assistant</h5> */}
63-
{/* <p class="mb-3">Please provide some more information about yourself and the kind of assistant you need.</p> */}
63+
{/* <p className="mb-3">Please provide some more information about yourself and the kind of assistant you need.</p> */}
6464

6565
<Form.Group size="lg" controlId="helpTitle" className="mb-3">
6666
<Form.Label className="form-label">What help do you want?</Form.Label>

src/assistant/assistivepage.js

+21-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/happiness/happiness.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22

33
import Grabber from '../assets/images/grabber.jpg';
4-
import Physical from '../assets/images/physical.jpg';
5-
import Innovation from '../assets/images/innovation.jpg';
4+
// import Physical from '../assets/images/physical.jpg';
5+
// import Innovation from '../assets/images/innovation.jpg';
66
import LogoutNavBar from '../navbar/logoutnavbar';
77

88
export default function LandingPage(props) {

src/help/needhelp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function NeedHelp(props) {
5050
<Form onSubmit={handleSubmit} className="needs-validation" noValidate validated={validated}>
5151

5252
<h5 className="border-bottom pb-2 mb-2">Request Help</h5>
53-
<p class="mb-3">Please provide some more information about yourself and the kind of help you need.</p>
53+
<p className="mb-3">Please provide some more information about yourself and the kind of help you need.</p>
5454

5555
<Form.Group size="lg" controlId="helpTitle" className="mb-3">
5656
<Form.Label className="form-label">What can we help you with?</Form.Label>

src/home.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Home(props) {
1919
<div className="container px-4">
2020
<div className="row flex-lg-row-reverse align-items-center mt-3 mb-4 g-lg-5 py-lg-5">
2121
<div className="col-10 col-sm-8 col-lg-6 m-auto">
22-
<img src={HomeImage} class="d-block mx-lg-auto img-fluid" alt="3I" width="700" height="500" loading="lazy" />
22+
<img src={HomeImage} className="d-block mx-lg-auto img-fluid" alt="3I" width="700" height="500" loading="lazy" />
2323
</div>
2424
<div className="col-lg-6 text-center text-lg-start">
2525
<h1 className="lh-1 mb-2 mx-4 mx-lg-0">

src/landingpage/landingpage.js

+22-22
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import Assistant from '../assistant/assistant';
1212
import NeedHelp from '../help/needhelp';
1313

1414
export default function LandingPage(props) {
15-
const name = localStorage.getItem("userName");
16-
const isRequested = localStorage.getItem("isRequested");
15+
// const name = localStorage.getItem("userName");
16+
// const isRequested = localStorage.getItem("isRequested");
1717
const isVolunteer = localStorage.getItem("isVolunteer");
1818
const help = JSON.parse(localStorage.getItem("assistantObj"));
1919
let date = (help != null && help.date) ? new Date(help.date) : new Date();
@@ -43,8 +43,8 @@ export default function LandingPage(props) {
4343
<span className="rounded badge bg-soft-primary">Open</span>
4444
</div>
4545
<div className="col-auto border-bottom text-center" style={{ width: '100px' }}>
46-
<a href="#" className="btn btn-sm btn-outline-primary mb-1 w-100">Accept</a>
47-
<a href="#" className="btn btn-sm btn-link mb-2">More Info</a>
46+
<button type="button" className="btn btn-sm btn-outline-primary mb-1 w-100">Accept</button>
47+
<button type="button" className="btn btn-sm btn-link mb-2">More Info</button>
4848
</div>
4949
</div>
5050
{/* repeat item */}
@@ -61,13 +61,13 @@ export default function LandingPage(props) {
6161
<span className="rounded badge bg-soft-primary">Open</span>
6262
</div>
6363
<div className="col-auto border-bottom text-center" style={{ width: '100px' }}>
64-
<a href="#" className="btn btn-sm btn-outline-primary mb-1 w-100">Accept</a>
65-
<a href="#" className="btn btn-sm btn-link mb-2">More Info</a>
64+
<button type="button" className="btn btn-sm btn-outline-primary mb-1 w-100">Accept</button>
65+
<button type="button" className="btn btn-sm btn-link mb-2">More Info</button>
6666
</div>
6767
</div>
6868
{/* repeat item */}
6969
<small className="d-block text-end mt-3">
70-
<a href="#">View all</a>
70+
<button type="button" className="btn btn-sm btn-link">View all</button>
7171
</small>
7272
</div>
7373
{
@@ -77,8 +77,8 @@ export default function LandingPage(props) {
7777
}
7878

7979
{(help && help.helpTitle) ?
80-
<div class="my-3 p-3 bg-body rounded shadow-sm">
81-
<h6 class="border-bottom pb-2 mb-0">
80+
<div className="my-3 p-3 bg-body rounded shadow-sm">
81+
<h6 className="border-bottom pb-2 mb-0">
8282
Help requested by you
8383
</h6>
8484
<div className="d-flex pt-3">
@@ -100,14 +100,14 @@ export default function LandingPage(props) {
100100
className="me-2 rounded-circle shadow-sm" />
101101
<small className="lh-1">
102102
<small className="small text-muted d-block text-center">Accepted by</small>
103-
<a href="#" className="small">Sarah Gordy</a>
103+
<button type="button" className="small btn btn-link">Sarah Gordy</button>
104104
</small>
105105
</div>
106106
</>
107107
:
108-
<a href="#" className="btn btn-sm btn-outline-primary mb-1 w-100">Requested</a>
108+
<button type="button" className="btn btn-sm btn-outline-primary mb-1 w-100">Requested</button>
109109
}
110-
{/* <a href="#" className="btn btn-sm btn-link mb-2">More Info</a> */}
110+
{/* <button type="button" className="btn btn-sm btn-link mb-2">More Info</button> */}
111111
</div>
112112

113113
</div>
@@ -117,27 +117,27 @@ export default function LandingPage(props) {
117117
</>
118118
}
119119

120-
<div class="my-3 p-3 bg-body rounded shadow-sm">
120+
<div className="my-3 p-3 bg-body rounded shadow-sm">
121121
<Form.Group className="form-check-inline m-0">
122122
<Form.Label className="form-check-label d-block m-0 me-2">
123123
Need {(help && help.helpTitle) ? "more" : ""} help?
124124
</Form.Label>
125-
<input id="professional" name="help" type="radio" class="form-check-input me-2" onChange={() => { setProfessionalHelp(!professionalHelp); setVolunteerHelp(false) }} />
126-
<label class="form-check-label me-3" for="professional">Professional</label>
127-
<input id="volunteer" name="help" type="radio" class="form-check-input me-2" onChange={() => { setVolunteerHelp(!volunteerHelp); setProfessionalHelp(false) }} />
128-
<label class="form-check-label" for="volunteer">Volunteer</label>
125+
<input id="professional" name="help" type="radio" className="form-check-input me-2" onChange={() => { setProfessionalHelp(!professionalHelp); setVolunteerHelp(false) }} />
126+
<label className="form-check-label me-3" htmlFor="professional">Professional</label>
127+
<input id="volunteer" name="help" type="radio" className="form-check-input me-2" onChange={() => { setVolunteerHelp(!volunteerHelp); setProfessionalHelp(false) }} />
128+
<label className="form-check-label" htmlFor="volunteer">Volunteer</label>
129129
</Form.Group>
130130
</div>
131131

132132
{
133133
professionalHelp &&
134-
<div class="my-3 p-3 bg-body rounded shadow-sm">
134+
<div className="my-3 p-3 bg-body rounded shadow-sm">
135135
<Assistant />
136136
</div>
137137
}
138138
{
139139
volunteerHelp &&
140-
<div class="my-3 p-3 bg-body rounded shadow-sm">
140+
<div className="my-3 p-3 bg-body rounded shadow-sm">
141141
<NeedHelp />
142142
</div>
143143
}
@@ -150,13 +150,13 @@ export default function LandingPage(props) {
150150
<div className="col-md-4">
151151
<div className="position-sticky" style={{ top: '80px' }}>
152152
{/* Profile Info Card */}
153-
<div class="my-3 p-3 bg-body rounded shadow-sm">
153+
<div className="my-3 p-3 bg-body rounded shadow-sm">
154154
<div className="row g-0">
155155
<div className="col-auto">
156-
<img class="img-thumbnail me-3 img-fluid rounded-circle shadow-sm" src={Avatar} width="64" height="64" alt="" />
156+
<img className="img-thumbnail me-3 img-fluid rounded-circle shadow-sm" src={Avatar} width="64" height="64" alt="" />
157157
</div>
158158
<div className="col">
159-
<h6 class="mb-0">
159+
<h6 className="mb-0">
160160
Varun
161161
</h6>
162162
<div className="small text-muted mb-1 border-bottom pb-1">

0 commit comments

Comments
 (0)