-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from aswanthabam/dev
feat(admin) : participants list and dowwnload participant list
- Loading branch information
Showing
12 changed files
with
568 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
{ | ||
"hosting": { | ||
"public": "dist", | ||
"site": "vijnana24", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
} | ||
"hosting": [ | ||
{ | ||
"public": "dist", | ||
"site": "vijnana24", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
}, | ||
{ | ||
"public": "dist", | ||
"site": "vijnana", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
import React, { useEffect, useState } from "react"; | ||
import { | ||
_AboutVijnana, | ||
_Event, | ||
_EventCreateData, | ||
} from "../../../../utils/types"; | ||
import { getAboutVijnana } from "../../../../apis/eventApi"; | ||
import { useLoader } from "../../../../components/toploader/useLoader"; | ||
|
||
const AboutVijnana: React.FC = () => { | ||
const [formData, setFormData] = useState<_AboutVijnana>({ | ||
name: "", | ||
start: "", | ||
end: "", | ||
about: "", | ||
contact: "", | ||
email: "", | ||
}); | ||
const { addLoader } = useLoader(); | ||
useEffect(() => { | ||
getAboutVijnana(addLoader).then((res) => { | ||
res && setFormData(res); | ||
}); | ||
}, []); | ||
return ( | ||
<div> | ||
<h3 className="underline start" style={{ marginBottom: "30px" }}> | ||
About Vijana | ||
</h3> | ||
<code>{"" + formData}</code> | ||
<h1>EDIT NOT IMPLEMENTED</h1> | ||
{/* <form onSubmit={handleSubmit} method="post"> | ||
<div className="mb-3"> | ||
<label htmlFor="title" className="form-label"> | ||
Name of event: | ||
</label> | ||
<input | ||
type="text" | ||
id="name" | ||
className="form-control" | ||
value={formData.name} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className="mb-3"> | ||
<label htmlFor="title" className="form-label"> | ||
Start Date: | ||
</label> | ||
<input | ||
id="start" | ||
className="form-control" | ||
type="datetime-local" | ||
value={formData.start} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className="mb-3"> | ||
<label htmlFor="title" className="form-label"> | ||
End Date: | ||
</label> | ||
<input | ||
id="end" | ||
className="form-control" | ||
type="datetime-local" | ||
value={formData.end} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className="mb-3"> | ||
<label htmlFor="title" className="form-label"> | ||
About Event: | ||
</label> | ||
<textarea | ||
id="about" | ||
className="form-control" | ||
value={formData.about} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className="mb-3"> | ||
<label htmlFor="title" className="form-label"> | ||
Contact : | ||
</label> | ||
<input | ||
id="contact" | ||
className="form-control" | ||
value={formData.contact} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className="mb-3"> | ||
<label htmlFor="title" className="form-label"> | ||
Email: | ||
</label> | ||
<textarea | ||
id="email" | ||
className="form-control" | ||
value={formData.email} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<button className="btn btn-primary">Save About</button> | ||
</form> */} | ||
</div> | ||
); | ||
}; | ||
|
||
export default AboutVijnana; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/pages/admin/admin_pages/view_events/participants.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.participantsPage { | ||
width: 100%; | ||
margin-top: 20px; | ||
|
||
.displayItems { | ||
background: red; | ||
|
||
& h3 { | ||
font-weight: 900; | ||
} | ||
} | ||
} |
Oops, something went wrong.