Skip to content

Commit

Permalink
add sweet state to front end
Browse files Browse the repository at this point in the history
  • Loading branch information
choden-dev committed Mar 5, 2024
1 parent b114853 commit fe34739
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react-dom": "^18.2.0",
"react-firebase-hooks": "^5.1.1",
"react-router-dom": "^6.10.0",
"react-sweet-state": "^2.7.1",
"stripe": "^13.7.0",
"vite": "^5.0.11",
"vite-tsconfig-paths": "^4.2.3",
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/AdminBookings/AdminBookings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { ArrowForwardIos, ArrowBackIos } from "@mui/icons-material"
import "pages/Admin.css"
import { useNavigate } from "react-router-dom"
import React, { useState, useEffect } from "react"
import { useState, useEffect } from "react"
import { collection, getDocs } from "firebase/firestore"
import { db } from "firebase"

Expand Down
2 changes: 1 addition & 1 deletion client/src/services/FetchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import createClient from "openapi-fetch"
import type { paths } from "models/__generated__/schema"

const fetchClient = createClient<paths>({
baseUrl: process.env.BACKEND_BASE_URL
baseUrl: import.meta.env.VITE_BACKEND_BASE_URL
})

export default fetchClient
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11427,6 +11427,13 @@ react-style-singleton@^2.2.1:
invariant "^2.2.4"
tslib "^2.0.0"

react-sweet-state@^2.7.1:
version "2.7.1"
resolved "https://registry.yarnpkg.com/react-sweet-state/-/react-sweet-state-2.7.1.tgz#0ac72bd1728e299df0a6d32c49eec639e387d40b"
integrity sha512-TCZxdl5Ek7KNUNF/ETeZC12VqWPRhIVi7l4nSs0KAfv4YktxhKxqfhBJyUFQd+oanMjQSWdWvS3FtJxcoi29YQ==
dependencies:
use-sync-external-store "^1.0.0"

react-transition-group@^4.4.5:
version "4.4.5"
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.5.tgz#e53d4e3f3344da8521489fbef8f2581d42becdd1"
Expand Down Expand Up @@ -13267,6 +13274,11 @@ use-sidecar@^1.1.2:
detect-node-es "^1.1.0"
tslib "^2.0.0"

use-sync-external-store@^1.0.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a"
integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==

util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
Expand Down

0 comments on commit fe34739

Please sign in to comment.