Skip to content

Commit

Permalink
kk
Browse files Browse the repository at this point in the history
  • Loading branch information
mukilan2815 committed Jul 29, 2024
1 parent cd863fc commit 389604e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Pages/Admin/Allmembers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Allmembers = () => {

try {
const response = await fetch(
"http://192.168.106.126:8000/membershipform/",
"http://192.168.188.144:8000/membershipform/",
{
headers: {
Authorization: token,
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Admin/Analysis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Dashboard = () => {

useEffect(() => {
axios
.get("http://192.168.106.126:8000/membershipform/")
.get("http://192.168.188.144:8000/membershipform/")
.then((response) => {
console.log("API response:", response.data); // Debugging log
setFormData(response.data);
Expand Down
6 changes: 3 additions & 3 deletions src/Pages/Admin/Approvalpage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ApprovalPage = () => {
try {
const token = localStorage.getItem("token");
const response = await axios.get(
"http://192.168.106.126:8000/approval/",
"http://192.168.188.144:8000/approval/",
{
headers: {
Authorization: `Token ${token}`,
Expand Down Expand Up @@ -45,7 +45,7 @@ const ApprovalPage = () => {
try {
const token = localStorage.getItem("token");
await axios.post(
"http://192.168.106.126:8000/approval/",
"http://192.168.188.144:8000/approval/",
{ fid, status: "accepted" },
{
headers: {
Expand All @@ -65,7 +65,7 @@ const ApprovalPage = () => {
try {
const token = localStorage.getItem("token");
await axios.post(
"http://192.168.106.126:8000/approval/",
"http://192.168.188.144:8000/approval/",
{ fid, reason },
{
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Admin/LoginAdmin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const LoginAdmin = () => {
const password = formData.get("password");

try {
const response = await axios.post("http://192.168.106.126:8000/login/", {
const response = await axios.post("http://192.168.188.144:8000/login/", {
username,
password,
});
Expand Down
16 changes: 9 additions & 7 deletions src/Pages/Client/ExistingMember/Formexisting.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const Formexisting = () => {
e.preventDefault();

const response = await axios.put(
"http://192.168.106.126:8000/existinglogin/",
"http://192.168.188.144:8000/existinglogin/",
formData,
{
headers: {
Expand Down Expand Up @@ -273,7 +273,7 @@ const Formexisting = () => {
<input
type="text"
name="applicantName"
value={formData.applicantName || ""}
value={formData.NameofApplicant || ""}
onChange={handleInputChange}
className="border rounded px-2 flex-grow"
/>
Expand Down Expand Up @@ -458,7 +458,7 @@ const Formexisting = () => {
<input
type="text"
name="aadhaarCardNo"
value={legalInfo.Legalinfo_aadhar}
value={formData.Legalinfo_aadhar}
onChange={handleLegalInfoChange}
className="w-full border rounded px-2 py-1"
/>
Expand All @@ -468,7 +468,7 @@ const Formexisting = () => {
<input
type="text"
name="panCardNo"
value={legalInfo.Legalinfo_pancard}
value={formData.Legalinfo_pancard}
onChange={handleLegalInfoChange}
className="w-full border rounded px-2 py-1"
/>
Expand All @@ -478,7 +478,7 @@ const Formexisting = () => {
<input
type="text"
name="gstNo"
value={legalInfo.Legalinfo_GSTNo}
value={formData.Legalinfo_GSTNo}
onChange={handleLegalInfoChange}
className="w-full border rounded px-2 py-1"
/>
Expand All @@ -490,7 +490,7 @@ const Formexisting = () => {
<input
type="text"
name="companyRegistrationNo"
value={legalInfo.Legalinfo_CompanyFirmRegNo}
value={formData.Legalinfo_CompanyFirmRegNo}
onChange={handleLegalInfoChange}
className="w-full border rounded px-2 py-1"
/>
Expand All @@ -502,7 +502,7 @@ const Formexisting = () => {
<input
type="text"
name="societyRegistrationNo"
value={legalInfo.Legalinfo_SocietyAssociationRegNo}
value={formData.Legalinfo_SocietyAssociationRegNo}
onChange={handleLegalInfoChange}
className="w-full border rounded px-2 py-1"
/>
Expand Down Expand Up @@ -810,13 +810,15 @@ const Formexisting = () => {
<h6>2nd Year</h6>
<input
type="text"
value={formData.Annualturnover_year2}
className="border-b-4 outline-none border-blue-700 border-dotted "
/>
</div>
<div>
<h6>3rd Year</h6>
<input
type="text"
value={formData.Annualturnover_year3}
className="border-b-4 outline-none border-blue-700 border-dotted "
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Client/ExistingMember/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Login = () => {
e.preventDefault();
try {
const response = await axios.post(
"http://192.168.106.126:8000/existinglogin/",
"http://192.168.188.144:8000/existinglogin/",
{
email,
aadhar,
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Client/NewMember/Membershipform.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const Membershipform = () => {
e.preventDefault();

const response = await axios.post(
"http://192.168.106.126:8000/membershipform/",
"http://192.168.188.144:8000/membershipform/",
formData,
{
headers: {
Expand Down

0 comments on commit 389604e

Please sign in to comment.