Skip to content

Commit

Permalink
import HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
Nur-Aiman committed Sep 3, 2024
1 parent 696dad2 commit 62aa1e8
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/AppointmentBooking.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react'
import ReactCalendar from 'react-calendar'
import { add, format, differenceInMinutes } from 'date-fns'
import 'tailwindcss/tailwind.css'
import { HOST } from '../api'

function AppointmentBooking({
setSelectedDateTime,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/ClientAppointmentReview.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import { format } from 'date-fns'
import { useNavigate } from 'react-router-dom'
import { HOST } from '../api'

function ClientAppointmentReview({
counsellor,
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react'
import { useNavigate } from 'react-router-dom'
import { HOST } from '../api'

const NavBar = ({ loggedInUser, setLoggedInUser }) => {
const navigate = useNavigate()
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/ViewCounsellors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useNavigate } from 'react-router-dom'
import 'tailwindcss/tailwind.css'
import 'slick-carousel/slick/slick.css'
import 'slick-carousel/slick/slick-theme.css'
import { HOST } from '../api'

const counsellorPicture =
process.env.PUBLIC_URL + '/images/counsellor-picture.png'
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/AllAppointments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom'
import { Tab, Switch } from '@headlessui/react'
import NavBar from '../components/NavBar'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'

const Appointments = () => {
const [activeAppointments, setActiveAppointments] = useState([])
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/AppointmentDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ReactCalendar from 'react-calendar'
import 'react-calendar/dist/Calendar.css'
import Draggable from 'react-draggable'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'

const AppointmentDetails = () => {
const { id } = useParams()
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/ClientBooking.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import SurveyQuestion from '../components/SurveyQuestion'
import MainIssue from '../components/MainIssue'
import ClientAppointmentReview from '../components/ClientAppointmentReview'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'

function ClientBooking() {
const { user, loading } = useAuth()
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/ClientRegistration.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from 'react'
import '../App.css'
import { useNavigate } from 'react-router-dom'
import { HOST } from '../api'

const style = {
form: {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/CounsellorProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useParams } from 'react-router-dom'
import NavBar from '../components/NavBar'
import { useNavigate } from 'react-router-dom'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'

const counsellorPicture =
process.env.PUBLIC_URL + '/images/counsellor-profile-photo.png'
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/CounsellorsRegistration.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState, useEffect } from 'react'
import { useNavigate } from 'react-router-dom'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'
/////
function CounsellorRegistration() {
const [username, setUsername] = useState('')
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ViewCounsellors from '../components/ViewCounsellors'
import Hero from '../components/Hero'
import Testimonials from '../components/Testimonials'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'

function Home() {
const { user, loading } = useAuth()
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/ManageAccounts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react'
import NavBar from '../components/NavBar'
import { useNavigate } from 'react-router-dom'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'

const ManageAccounts = () => {
const [counsellors, setCounsellors] = useState([])
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/MyAppointment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NavBar from '../components/NavBar'
import StripeCheckout from 'react-stripe-checkout'
import { useNavigate } from 'react-router-dom'
import useAuth from '../hooks/useAuth'
import { HOST } from '../api'

function MyAppointment() {
const [appointment, setAppointment] = useState(null)
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/UserLogin.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from 'react'
import { useNavigate, Link } from 'react-router-dom'
import Cookies from 'js-cookie'
import { HOST } from '../api'

function UserLogin() {
const [email, setEmail] = useState('')
Expand Down

0 comments on commit 62aa1e8

Please sign in to comment.