Skip to content

Commit

Permalink
Pre-Plug
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Sep 30, 2024
1 parent c890524 commit 82ece77
Show file tree
Hide file tree
Showing 12 changed files with 473 additions and 806 deletions.
19 changes: 19 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Care is a React Typescript Project, built with Vite and styled with TailwindCSS.

Care uses a custom useQuery hook to fetch data from the API. APIs are defined in the api.tsx file

Here's an example of how to use the useQuery hook to fetch data from the API:

```
useQuery from "@core/Common/hooks/useQuery";
const { data, loading, error } = useQuery(routes.getFacilityUsers, {
facility_id: "1",
});

request from "@core/Common/utils/request";
const { res } = await request(routes.partialUpdateAsset, {
pathParams: { external_id: assetId },
body: data,
});
```

2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ REACT_APP_COVER_IMAGE_ALT=https://cdn.ohc.network/care_logo.svg
REACT_PUBLIC_URL=https://care.ohc.network

# Care API URL without the /api prefix
REACT_CARE_API_URL=https://careapi.ohc.network
REACT_CARE_API_URL=https://9k.khavinshankar.dev

# Dev envs
ESLINT_NO_DEV_ERRORS=true
Expand Down
Loading

0 comments on commit 82ece77

Please sign in to comment.