Skip to content

Commit

Permalink
Bumped version to 1.0.80
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech committed Mar 18, 2024
2 parents d1924f9 + 34ab951 commit fdadfdd
Show file tree
Hide file tree
Showing 43 changed files with 1,482 additions and 235 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mainToHeroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.8.9 # This is the action
- uses: actions/checkout@v3
- uses: akhileshns/heroku-deploy@v3.12.14 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "foodoasis" #Must be unique in Heroku
Expand Down
342 changes: 259 additions & 83 deletions client/package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "foodoasis-client",
"description": "React Client for Food Oasis",
"version": "1.0.79",
"version": "1.0.80",
"author": "Hack for LA",
"license": "GPL-2.0",
"private": true,
Expand All @@ -25,17 +25,19 @@
"@mui/material": "^5.11.1",
"@mui/x-data-grid": "^5.17.20",
"@mui/x-date-pickers": "^6.8.0",
"@types/mapbox-gl": "^3.1.0",
"axios": "^1.6.7",
"dayjs": "^1.11.7",
"debounce-fn": "^5.0.0",
"formik": "^2.2.9",
"js-file-download": "^0.4.12",
"mapbox-gl": "^3.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-draggable": "^4.4.6",
"react-gtm-module": "^2.0.11",
"react-helmet-async": "^1.3.0",
"react-map-gl": "^6.1.17",
"react-map-gl": "^7.1.7",
"react-router-dom": "^6.10.0",
"react-scripts": "^5.0.1",
"react-virtuoso": "^4.1.0",
Expand Down
18 changes: 17 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const About = lazy(() => import("./components/About"));
const Faq = lazy(() => import("./components/Faq"));
const Contact = lazy(() => import("./components/StaticPages/Contact"));
const MuiDemo = lazy(() => import("./components/MuiDemo/MuiDemo"));
const Features = lazy(() => import("./components/Admin/Features"));

function App() {
useEffect(() => {
Expand Down Expand Up @@ -170,7 +171,6 @@ function App() {
</div>
}
/>

<Route
path="verificationdashboard"
element={
Expand Down Expand Up @@ -276,6 +276,22 @@ function App() {
</PrivateRoute>
}
/>
<Route
path="features"
element={
<PrivateRoute roles={["isAdmin"]}>
<div
style={{
flexBasis: "90%",
paddingTop: "1em",
paddingBottom: "1em",
}}
>
<Features />
</div>
</PrivateRoute>
}
/>
<Route
path="securityadmindashboard"
element={
Expand Down
16 changes: 16 additions & 0 deletions client/src/appReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ function noKnownEligibilityRequirementsFilterReducer(state, action) {
}
}

function listPanelReducer(state, action) {
switch (action.type) {
case "TOGGLE_LIST_PANEL":
return action.listPanel;
default:
return state;
}
}

export function appReducer(state, action) {
return {
defaultCoordinate: defaultCoordinatesReducer(
Expand Down Expand Up @@ -137,6 +146,7 @@ export function appReducer(state, action) {
state.noKnownEligibilityRequirementsFilter,
action
),
listPanel: listPanelReducer(state.listPanel, action),
};
}

Expand All @@ -152,6 +162,7 @@ export function getInitialState() {
filterPanel: false,
openTimeFilter: { radio: "Show All", day: "", time: "" },
noKnownEligibilityRequirementsFilter: false,
listPanel: true,
};
}

Expand Down Expand Up @@ -234,3 +245,8 @@ export function useNoKnownEligibilityRequirementsFilter() {
const { noKnownEligibilityRequirementsFilter } = useAppState();
return noKnownEligibilityRequirementsFilter;
}

export function useListPanel() {
const { listPanel } = useAppState();
return listPanel;
}
Loading

0 comments on commit fdadfdd

Please sign in to comment.