REGISTRATION
+You need to complete a very simple registration form. Which contains all required contact information to enter in the donation process.
+diff --git a/components/Cahngepas.js b/components/Cahngepas.js new file mode 100644 index 0000000..b988412 --- /dev/null +++ b/components/Cahngepas.js @@ -0,0 +1,81 @@ +import React from 'react' +import axios from 'axios'; +export default function Cahngepas(props) { + const url = 'https://lifeshareproject.herokuapp.com/' + console.log(props.token); + const handlesubmit=async(e)=>{ + e.preventDefault(); + let password = { + new_password:e.target.new_password.value, + old_password : e.target.old_password.value + + } + const config = { + headers:{'Authorization':`Bearer ${props.token}`}, + } + const change = await axios.put(`${url}accounts/api/change-password/`,password,config) + console.log(change.data); + } + + return ( +
+ + {item.text} +
++ Phone: {item.phone} +
+ {item.patient == tokens.username && +The donation process from the time you arrive center until the time you leave
+
+ You need to complete a very simple registration form. Which contains all required contact information to enter in the donation process.
+
+ A drop of blood from your finger will take for simple test to ensure that your blood iron levels are proper enough for donation process.
+
+ After ensuring and passed screening test successfully you will be directed to a donor bed for donation. It will take only 6-10 minutes.
+
Why should people donate blood?
+ + Safe blood saves lives. Blood is needed by women with complications during pregnancy and childbirth, children with severe anaemia, often resulting from malaria or malnutrition, accident victims and surgical and cancer patients. +
+
+ A Happier, Longer Life!
+ + One blood donation can save up to three lives, according to Dr. DeSimone. People usually donate because it feels good to help others, and altruism and volunteering have been linked to positive health outcomes, including a lower risk for depression and greater longevity. +
+
+
+ A Healthier Heart and Vascular System + Regular blood donation is linked to lower blood pressure and a lower risk for heart attacks. “It definitely helps to reduce cardiovascular risk factors,” says Dr. DeSimone. +
+
+ You are someone's Hero!
+ + In as little as few minutes, you can become someone's unnamed, unknown, but all-important Hero. Saving a life is a noble work that starts very simply and easily. Donate Blood or donate Money, every form of contribution you make is important, valued and essential in our shared mission to save lives. +
+
+ + Join our cause and help us save more lives. Everyone should have the right to get a blood transfusion. +
+
+ | + Name + | ++ Location + | ++ blood Type + | ++ Phone Number + | + + ++ Edit + | +
|---|---|---|---|---|
|
+
+
+
+
+
+
+ {person.first_name}
+ {person.email}
+ |
+
+ {person.address.city.city}
+ {person.address.area.area}
+ |
+ + + {person.blood_type.blood_type} + + | +{person.phone_number} | + +
The volunteers who give their time and talents help to fulfill our mission.
+
+
+
+
- Get started by editing{' '}
-
- pages/index.js
-
-
- Find in-depth information about Next.js features and API. -
- + const {tokens} = useAuth() - -- Learn about Next.js in an interactive course with quizzes! -
- - - -- Discover and deploy boilerplate example Next.js projects. -
- + return ( + <> + + {tokens?- Instantly deploy your Next.js site to a public URL with Vercel. -
- -