Skip to content

Commit

Permalink
Merge pull request #772 from hackforla/main
Browse files Browse the repository at this point in the history
merge main into dev
  • Loading branch information
sydneywalcoff authored Jan 11, 2023
2 parents dc51cea + 680dc14 commit b85e12c
Show file tree
Hide file tree
Showing 8 changed files with 20,108 additions and 26,198 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions: write-all
strategy:
matrix:
node-version: [10.x]
node-version: [16.x]

steps:
- name: Checkout 🛎️
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Explain the different ways people can contribute. For example:
- Join the team
on Slack channel and at our biweekly Monday hack night in person or teleconference (start at 6pm).
- To help with user research, sync with Apurva.
- To provide design support, sync with Gretchen.
- To provide design support, sync with Anita or Serena.
- To contribute to the code, sync with Daniel.


Expand Down
46,257 changes: 20,090 additions & 26,167 deletions products/statement-generator/package-lock.json

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions products/statement-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"version": "0.8.0",
"homepage": "./",
"private": true,
"engines": {
"npm": ">=8.0.0",
"node": ">=16.0.0"
},
"dependencies": {
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/jspdf": "^1.3.3",
"@types/node": "^12.0.0",
"@types/react": "^16.9.56",
Expand All @@ -18,13 +20,13 @@
"gh-pages": "^3.1.0",
"i18next": "^20.1.0",
"i18next-browser-languagedetector": "^6.1.0",
"i18next-http-backend": "^1.2.1",
"jspdf": "^2.1.1",
"i18next-http-backend": "^1.4.5",
"jspdf": "^2.3.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-i18next": "^11.8.12",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"react-scripts": "5.0.1",
"typescript": "^4.0.3",
"web-vitals": "^0.2.4"
},
Expand All @@ -39,8 +41,7 @@
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
"react-app"
]
},
"browserslist": {
Expand Down
9 changes: 0 additions & 9 deletions products/statement-generator/src/App.test.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext } from 'react';
import React, { useCallback, useContext } from 'react';
import { makeStyles, createStyles } from '@material-ui/core';

import FormStateContext from 'contexts/FormStateContext';
Expand Down Expand Up @@ -43,21 +43,21 @@ export default function FlowNavigation({
const backBtnTheme =
appTheme === 'dark' ? 'transparent-on-dark' : 'transparent-on-light';

function handleBack() {
const handleBack = useCallback(() => {
if (onBack) {
onBack();
} else {
goBackStep();
}
}
}, []);

function handleNext() {
const handleNext = useCallback(() => {
if (onNext) {
onNext();
} else {
goNextStep();
}
}
}, []);

return (
<div className={utilityClasses.buttonContainer}>
Expand Down
6 changes: 3 additions & 3 deletions products/statement-generator/src/pages/PreviewPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect } from 'react';
import React, { useCallback, useContext, useEffect } from 'react';

import TextPreview from 'components/TextPreview';
import ContentContainer from 'components-layout/ContentContainer';
Expand All @@ -16,7 +16,7 @@ function PreviewPage() {
const previewConfigItem = getPreviewConfig(currentStep);
const hasPreviewConfig = previewConfigItem !== undefined;

function updateStatement(newStatement: string) {
const updateStatement = useCallback((newStatement: string) => {
if (hasPreviewConfig) {
updateStepToForm({
statements: {
Expand All @@ -25,7 +25,7 @@ function PreviewPage() {
},
});
}
}
}, []);

// hacky implementation to generate the heading & closing statement here
// because it does not have a unique page to be generated via a preview
Expand Down
5 changes: 0 additions & 5 deletions products/statement-generator/src/setupTests.ts

This file was deleted.

0 comments on commit b85e12c

Please sign in to comment.