Skip to content

Commit 7be7169

Browse files
committed
Merge branch 'release-1.0.96'
2 parents ef8e8a7 + c11e821 commit 7be7169

79 files changed

Lines changed: 2834 additions & 1603 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client/package-lock.json

Lines changed: 173 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "foodoasis-client",
33
"description": "React Client for Food Oasis",
4-
"version": "1.0.94",
4+
"version": "1.0.96",
55
"author": "Hack for LA",
66
"license": "GPL-2.0",
77
"private": true,
@@ -30,7 +30,7 @@
3030
"@turf/bbox": "^7.2.0",
3131
"@types/mapbox-gl": "^3.4.0",
3232
"@types/node": "^22.9.1",
33-
"axios": "^1.8.2",
33+
"axios": "^1.12.0",
3434
"dayjs": "^1.11.7",
3535
"debounce-fn": "^5.0.0",
3636
"formik": "^2.2.9",
@@ -81,7 +81,7 @@
8181
"prettier": "^2.4.1",
8282
"ts-jest": "^29.2.5",
8383
"typescript": "^5.0.0",
84-
"vite": "^6.3.4",
84+
"vite": "^6.4.1",
8585
"vite-plugin-svgr": "^4.2.0",
8686
"vite-tsconfig-paths": "^5.0.1"
8787
},

client/src/appReducer.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ function openTimeFilterReducer(state, action) {
116116
}
117117
}
118118

119+
function foodTypeFilterReducer(state, action) {
120+
switch (action.type) {
121+
case "FOOD_TYPE_FILTER_UPDATED":
122+
return action.foodTypeFilter;
123+
default:
124+
return state;
125+
}
126+
}
127+
119128
function listPanelReducer(state, action) {
120129
switch (action.type) {
121130
case "TOGGLE_LIST_PANEL":
@@ -171,6 +180,7 @@ export function appReducer(state, action) {
171180
filterPanel: filterPanelReducer(state.filterPanel, action),
172181
orgNameFilter: orgNameFilterReducer(state.orgNameFilter, action),
173182
openTimeFilter: openTimeFilterReducer(state.openTimeFilter, action),
183+
foodTypeFilter: foodTypeFilterReducer(state.foodTypeFilter, action),
174184
listPanel: listPanelReducer(state.listPanel, action),
175185
isListPanelVisible: isListPanelVisibleReducer(
176186
state.isListPanelVisible,
@@ -193,6 +203,7 @@ export function getInitialState() {
193203
filterPanel: false,
194204
orgNameFilter: "",
195205
openTimeFilter: { radio: "Show All", day: "", time: "" },
206+
foodTypeFilter: [],
196207
listPanel: true,
197208
isListPanelVisible: false,
198209
position: "0",
@@ -284,6 +295,11 @@ export function useOpenTimeFilter() {
284295
return openTimeFilter;
285296
}
286297

298+
export function useFoodTypeFilter() {
299+
const { foodTypeFilter } = useAppState();
300+
return foodTypeFilter;
301+
}
302+
287303
export function useListPanel() {
288304
const { listPanel } = useAppState();
289305
return listPanel;

client/src/components/Account/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const LoginForm = () => {
7676
<Formik
7777
validateOnBlur={false}
7878
initialValues={{
79-
email: email || "",
79+
email: email ?? "",
8080
password: "",
8181
}}
8282
validationSchema={validationSchema}

client/src/components/Account/PageWrapper.jsx renamed to client/src/components/Account/PageWrapper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Container } from "@mui/material";
2+
import { PropsWithChildren } from "react";
23

3-
export const PageWrapper = ({ children }) => {
4+
export const PageWrapper = ({ children }: PropsWithChildren<{}>) => {
45
return (
56
<Container
67
component="main"

0 commit comments

Comments
 (0)