diff --git a/src/App.tsx b/src/App.tsx index 346314d..c76e7bc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,7 +9,6 @@ import { } from "react-router-dom"; import { Home } from "./components/home/home"; import { Signin } from "./components/signin/signin"; -import { getToken } from "./common/user"; import GuardedRoute from "./components/guardedRoute"; import { DoPost } from "./components/do-post/do-post"; import { FindNeedy } from "./components/find-needy/find-needy"; diff --git a/src/common/api.tsx b/src/common/api.tsx index 5ae9084..10c6057 100644 --- a/src/common/api.tsx +++ b/src/common/api.tsx @@ -1,8 +1,7 @@ import axios from "axios"; import { toast } from "react-toastify"; import { Subject } from "rxjs"; -import { getPositionOfLineAndCharacter } from "typescript"; -import { getPhoneNumber, getToken, getUserId } from "./user"; +import { getToken } from "./user"; const baseURL = axios.create({ baseURL: process.env.REACT_APP_NODEJS_API, }); @@ -46,15 +45,6 @@ baseURL.interceptors.response.use( } ); export type TLatestOperation = "Completed" | "Started" | "Idle"; -interface updateStatus { - postId: string; - latestOperation: TLatestOperation; -} -interface IAuthReqBody { - userId: string; - phoneNumber: string; - token: string; -} interface userDataResponse { name: string; diff --git a/src/components/contribution-page/contribution.tsx b/src/components/contribution-page/contribution.tsx index 3f6bdbf..687dd66 100644 --- a/src/components/contribution-page/contribution.tsx +++ b/src/components/contribution-page/contribution.tsx @@ -1,6 +1,5 @@ -import { group } from "node:console"; import React from "react"; -import { Link,useHistory } from "react-router-dom"; +import { useHistory } from "react-router-dom"; import styles from "./contribution.module.css"; @@ -31,7 +30,7 @@ export function Contribution() {
+
+
+
+
Helping diff --git a/src/components/mapbox/mapbox.tsx b/src/components/mapbox/mapbox.tsx index 2bc2547..2f6d521 100644 --- a/src/components/mapbox/mapbox.tsx +++ b/src/components/mapbox/mapbox.tsx @@ -1,5 +1,5 @@ -import mapboxgl, { Marker } from "mapbox-gl"; -import { useEffect, useRef, useState } from "react"; +import mapboxgl from "mapbox-gl"; +import { useEffect, useRef } from "react"; import { getLocation } from "../../common/location"; type Props = { markers?: mapboxgl.Marker[]; diff --git a/src/components/signin/signin.tsx b/src/components/signin/signin.tsx index 2c3eba2..ae22177 100644 --- a/src/components/signin/signin.tsx +++ b/src/components/signin/signin.tsx @@ -2,7 +2,6 @@ import React from "react"; import styles from "./signin.module.css"; import { auth } from "../../Services/Firebase"; import { setPhoneNumber, setToken, setUserId } from "../../common/user"; -import axios from "axios"; import { handleHttpError, signIn, toggleSpinner } from "../../common/api"; export class Signin extends React.Component { state = { @@ -128,7 +127,7 @@ export class Signin extends React.Component { className={styles.next1} onClick={this.onSendotp} disabled={ - !(this.state.name && this.state.phoneNumber.length == 13) + !(this.state.name && this.state.phoneNumber.length === 13) } > {this.state.otpSend?"Resend otp":"Get OTP"} diff --git a/src/components/thankyou/thankyou.tsx b/src/components/thankyou/thankyou.tsx index 7ead071..974a7e0 100644 --- a/src/components/thankyou/thankyou.tsx +++ b/src/components/thankyou/thankyou.tsx @@ -19,7 +19,7 @@ export class Thankyou extends React.Component {
Change the world by being yourself,