8000 chore: upgrade next to 14 by ludtkemorgan · Pull Request #4875 · bloom-housing/bloom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: upgrade next to 14 #4875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
65bc0ab
chore: upgrade next to 14
ludtkemorgan May 16, 2025
5009589
fix: update netlify node version
ludtkemorgan May 20, 2025
bc5d356
fix: public netlify updates
ludtkemorgan May 20, 2025
51652ec
fix: remove netlify package
ludtkemorgan May 21, 2025
2ca9b11
fix: partner transpiling
ludtkemorgan May 22, 2025
48dad83
fix: partner env variables
ludtkemorgan May 22, 2025
9562bd6
fix: remove toml steps
ludtkemorgan May 22, 2025
6721e65
fix: change build command
ludtkemorgan May 22, 2025
20d93d2
fix: try more things
ludtkemorgan May 22, 2025
134de71
Revert "fix: try more things"
ludtkemorgan May 22, 2025
2ba537a
fix: update node version in circleci
ludtkemorgan May 28, 2025
e702f24
fix: switch to a valid version of cypress
ludtkemorgan May 28, 2025
a23290f
test: try not hoisting next
emilyjablonski Jun 3, 2025
79d920a
fix: attempt to change force a new cache
ludtkemorgan Jun 6, 2025
85ed25c
fix: attempts
emilyjablonski Jun 21, 2025
658ca73
fix: attempts 2
emilyjablonski Jun 21, 2025
32055a6
fix: attempts 3
emilyjablonski Jun 21, 2025
d62565c
fix: revert compat router
emilyjablonski Jun 21, 2025
ec94e41
fix: remove resolutions
emilyjablonski Jun 21, 2025
a18af5f
fix: cypress
emilyjablonski Jun 21, 2025
bb9680f
test: cypress
emilyjablonski Jun 21, 2025
fabdbac
test: cypress 2
emilyjablonski Jun 21, 2025
8b5f2fc
test: revert node upgrade
emilyjablonski Jun 23, 2025
b968767
test: revert node upgrade
emilyjablonski Jun 23, 2025
49d3725
test: localhost
emilyjablonski Jun 23, 2025
7955b9c
test: env var
emilyjablonski Jun 23, 2025
08cbf59
test: upgrade cypress
emilyjablonski Jun 23, 2025
c23d5cb
test: more localhost
emilyjablonski Jun 23, 2025
530ced1
test: trigger build w new env variables
emilyjablonski Jun 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ orbs:
executors:
cypress-node:
docker:
- image: "cypress/base:18.14.1"
- image: "cypress/base:18.20.3"
- image: "cimg/postgres:12.10"
environment:
POSTGRES_USER: bloom-ci
Expand All @@ -17,13 +17,12 @@ executors:
PORT: "3100"
EMAIL_API_KEY: "SG.SOME-LONG-SECRET-KEY"
APP_SECRET: "CI-LONG-SECRET-KEY"
NODE_ENV: "development"
# DB URL for migration and seeds:
DATABASE_URL: "postgres://bloom-ci@localhost:5432/bloom"
DATABASE_URL: "postgres://bloom-ci@127.0.0.1:5432/bloom"
# DB URL for the jest tests per ormconfig.test.ts
TEST_DATABASE_URL: "postgres://bloom-ci@localhost:5432/bloom"
PARTNERS_PORTAL_URL: "http://localhost:3001"
BACKEND_API_BASE: "http://localhost:3100"
TEST_DATABASE_URL: "postgres://bloom-ci@127.0.0.1:5432/bloom"
PARTNERS_PORTAL_URL: "http://127.0.0.1:3001"
BACKEND_API_BASE: "http://127.0.0.1:3100"
JURISDICTION_NAME: Bloomington
GOOGLE_API_EMAIL: "secret-key"
GOOGLE_API_ID: "secret-key"
Expand All @@ -42,7 +41,7 @@ executors:

standard-node:
docker:
- image: "cimg/node:18.14.2"
- image: "cimg/node:18.20.3"
- image: "cimg/postgres:12.10"
environment:
POSTGRES_USER: bloom-ci
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"scripts": {
"link:uic": "cd node_modules/react && yarn link && cd ../../../ui-components && yarn link 'react' && yarn link && cd ../bloom && yarn link '@bloom-housing/ui-components'",
"unlink:uic": "yarn unlink @bloom-housing/ui-components && cd ../ui-components && yarn unlink react && yarn unlink && yarn install --force && cd ../bloom/node_modules/react && yarn unlink && cd ../.. && yarn install --force",
"dev:app:public": "wait-on \"http-get://localhost:${PORT:-3100}/\" && cd sites/public && yarn dev",
"test:app:public": "wait-on \"http-get://localhost:${PORT:-3100}/\" && cd sites/public && yarn test",
"test:app:public:headless": "wait-on \"http-get://localhost:${PORT:-3100}/\" && cd sites/public && yarn test:headless",
"dev:app:public": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" && cd sites/public && yarn dev",
"test:app:public": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" && cd sites/public && yarn test",
"test:app:public:headless": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" && cd sites/public && yarn test:headless",
"test:app:public:unit": "cd sites/public && yarn test:unit:coverage",
"build:app:public": "cd sites/public && yarn build",
"dev:app:partners": "wait-on \"http-get://localhost:${PORT:-3100}/\" && cd sites/partners && yarn dev",
"test:app:partners": "wait-on \"http-get://localhost:${PORT:-3100}/\" && cd sites/partners && yarn test",
"test:app:partners:headless": "wait-on \"http-get://localhost:${PORT:-3100}/\" && cd sites/partners && yarn test:headless",
"dev:app:partners": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" && cd sites/partners && yarn dev",
"test:app:partners": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" && cd sites/partners && yarn test",
"test:app:partners:headless": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" && cd sites/partners && yarn test:headless",
"test:app:partners:unit": "cd sites/partners && yarn test:unit:coverage",
"build:app:partners": "cd sites/partners && yarn build",
"dev:backend": "cd api && yarn dev",
Expand Down
6 changes: 3 additions & 3 deletions shared-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
"@testing-library/react": "14.0.0",
"@types/jest": "^26.0.14",
"@types/node-polyglot": "^2.5.0",
"@types/react": "18.0.33",
"@types/react": "^18.0.33",
"@types/react-beautiful-dnd": "^13.1.1",
"@types/react-dom": "^16.9.5",
"@types/react-tabs": "^2.3.2",
"@types/react-test-renderer": "18.0.0",
"@types/react-text-mask": "^5.4.6",
"@types/react-text-mask": "^5.4.14",
"@types/react-transition-group": "^4.4.0",
"@types/tough-cookie": "^4.0.5",
"csv-parse": "^5.5.5",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.5.3",
"next": "^13.2.4",
"next": "^14.2.28",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-test-renderer": "18.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@ describe("<ListingFormActions>", () => {

await userEvent.click(screen.getByRole("button", { name: "Approve & Publish" }))
expect(submitMock).toBeCalledWith("redirect", ListingsStatusEnum.active)
screen.debug()
})
})
describe("as a jurisdictional admin", () => {
Expand Down
4 changes: 1 addition & 3 deletions sites/partners/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
command = "yarn run build"
ignore = "/bin/false"

[[plugins]]
package = "@netlify/plugin-nextjs"

[build.environment]

NODE_VERSION = "18.14.2"
NODE_VERSION = "18.17.0"
YARN_VERSION = "1.22.4"
NEXT_TELEMETRY_DISABLED = "1"
NODE_OPTIONS = "--max_old_space_size=4096"
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features 10000 /typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
16 changes: 11 additions & 5 deletions sites/partners/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ module.exports = withBundleAnalyzer(
backendProxyBase: BACKEND_PROXY_BASE,
listingServiceUrl: BACKEND_API_BASE + LISTINGS_QUERY,
idleTimeout: process.env.IDLE_TIMEOUT,
showSmsMfa: (process.env.SHOW_SMS_MFA || "TRUE") === "TRUE", // SMS on by default
showSmsMfa: !process.env.SHOW_SMS_MFA || process.env.SHOW_SMS_MFA === "TRUE" ? "TRUE" : "", // SMS on by default
cloudinaryCloudName: process.env.CLOUDINARY_CLOUD_NAME,
cloudinaryKey: process.env.CLOUDINARY_KEY,
cloudinarySignedPreset: process.env.CLOUDINARY_SIGNED_PRESET,
mapBoxToken: MAPBOX_TOKEN,
reCaptchaKey: process.env.RECAPTCHA_KEY,
showLottery: process.env.SHOW_LOTTERY === "TRUE",
showLottery: process.env.SHOW_LOTTERY === "TRUE" ? "TRUE" : "",
lotteryDaysTillExpiry: process.env.LOTTERY_DAYS_TILL_EXPIRY,
applicationExportAsSpreadsheet: process.env.APPLICATION_EXPORT_AS_SPREADSHEET === "TRUE",
useSecureDownloadPathway: process.env.USE_SECURE_DOWNLOAD_PATHWAY === "TRUE",
limitClosedListingActions: process.env.LIMIT_CLOSED_LISTING_ACTIONS === "TRUE",
applicationExportAsSpreadsheet:
process.env.APPLICATION_EXPORT_AS_SPREADSHEET === "TRUE" ? "TRUE" : "",
useSecureDownloadPathway: process.env.USE_SECURE_DOWNLOAD_PATHWAY === "TRUE" ? "TRUE" : "",
limitClosedListingActions: process.env.LIMIT_CLOSED_LISTING_ACTIONS === "TRUE" ? "TRUE" : "",
},
i18n: {
locales: process.env.LANGUAGES ? process.env.LANGUAGES.split(",") : ["en"],
Expand All @@ -60,6 +61,11 @@ module.exports = withBundleAnalyzer(
sassOptions: {
additionalData: tailwindVars,
},
transpilePackages: [
"@bloom-housing/ui-seeds",
"@bloom-housing/shared-helpers",
"@bloom-housing/ui-components",
],
webpack: (config) => {
config.module.rules.push({
test: /\.md$/,
Expand Down
9 changes: 4 additions & 5 deletions sites/partners/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"dotenv": "^8.2.0",
"markdown-to-jsx": "^6.11.4",
"nanoid": "^3.1.12",
"next": "^13.2.4",
"next": "^14.2.28",
"qs": "^6.10.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -57,9 +57,8 @@
"@babel/core": "^7.21.3",
"@babel/preset-env": "^7.20.2",
"@csstools/postcss-global-data": "^3.0.0",
"@cypress/code-coverage": "^3.10.1",
"@cypress/webpack-preprocessor": "^6.0.2",
"@netlify/plugin-nextjs": "4.41.3",
"@cypress/code-coverage": "^3.14.4",
"@cypress/webpack-preprocessor": "^6.0.4",
"@next/bundle-analyzer": "^10.1.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "5.17.0",
Expand All @@ -70,7 +69,7 @@
"@types/react": "^18.0.33",
"babel-loader": "^9.1.2",
"concurrently": "^5.3.0",
"cypress": "^12.8.1",
"cypress": "^14.5.0",
"cypress-file-upload": "^5.0.8",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.5.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from "next/link"

import { t } from "@bloom-housing/ui-components"
import { ApplicationSubmissionTypeEnum } from "@bloom-housing/shared-helpers/src/types/backend-swagger"
import { convertDataToLocal } from "../../../lib/helpers"
import { convertDataToLocal } from "../helpers"

export const getCols = () => [
{
Expand Down Expand Up @@ -110,5 +110,3 @@ export const getCols = () => [
width: 140,
},
]

export default getCols
4 changes: 3 additions & 1 deletion sites/partners/src/pages/application/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
MultiselectQuestionsApplicationSectionEnum,
} from "@bloom-housing/shared-helpers/src/types/backend-swagger"

export default function ApplicationsList() {
const ApplicationsList = () => {
const router = useRouter()
const applicationId = router.query.id as string
const { application } = useSingleApplicationData(applicationId)
Expand Down Expand Up @@ -177,3 +177,5 @@ export default function ApplicationsList() {
</ApplicationContext.Provider>
)
}

export default ApplicationsList
2 changes: 1 addition & 1 deletion sites/partners/src/pages/application/[id]/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
import { AuthContext } from "@bloom-housing/shared-helpers"
import { useSingleFlaggedApplication } from "../../../lib/hooks"
import Layout from "../../../layouts"
import { getCols } from "./applicationsCols"
import { NavigationHeader } from "../../../components/shared/NavigationHeader"
import { getCols } from "../../../lib/applications/applicationsCols"
import { StatusBar } from "../../../components/shared/StatusBar"

const Flag = () => {
Expand Down
Empty file removed sites/partners/yarn.lock
Empty file.
6 changes: 3 additions & 3 deletions sites/public/.env.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## == IMPORTANT REMINDER: ANY EDITS HERE MUST BE UPDATED IN ALL ENVIRONMENTS (incl. CI) == ##
BACKEND_API_BASE=http://localhost:3100
BACKEND_API_BASE_NEW=http://localhost:3100
BACKEND_API_BASE=http://127.0.0.1:3100
BACKEND_API_BASE_NEW=http://127.0.0.1:3100
BACKEND_PROXY_BASE=
LISTINGS_QUERY=/listings
HOUSING_COUNSELOR_SERVICE_URL=
HOUSING_COUNSELOR_SERVICE_URL=/get-assistance
NEXTJS_PORT=3000
MAPBOX_TOKEN=
LANGUAGES=en,es,zh,vi,tl
Expand Down
1 change: 0 additions & 1 deletion sites/public/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default defineConfig({
projectId: "bloom-public-reference",
pageLoadTimeout: 100000,
video: true,
videoUploadOnPasses: false,
numTestsKeptInMemory: 0,
viewportHeight: 1500,
env: {
Expand Down
2 changes: 1 addition & 1 deletion sites/public/cypress/support/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Listing } from "@bloom-housing/shared-helpers/src/types/backend-swagger"

export const listingsUrl = "http://localhost:3100/listings?limit=all"
export const listingsUrl = "http://127.0.0.1:3100/listings?limit=all"

type GetIncomeReturn = {
monthlyMin: number
Expand Down
12 changes: 1 addition & 11 deletions sites/public/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
[build]

command = "yarn run build"
ignore = "/bin/false"

[[plugins]]
package = "@netlify/plugin-nextjs"

[build.environment]

NODE_VERSION = "18.14.2"
YARN_VERSION = "1.22.4"
NEXT_TELEMETRY_DISABLED = "1"
NODE_OPTIONS = "--max_old_space_size=4096"

# reminder: URLs and fragments should *not* have a trailing /
LISTINGS_QUERY = "/listings"

[context.branch-deploy.environment]
GTM_KEY = "GTM-KF22FJP"

2 changes: 1 addition & 1 deletion sites/public/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
14 changes: 7 additions & 7 deletions sites/public/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (process.env.NODE_ENV !== "production") {
require("dotenv").config()
}
// Set up app-wide constants
let BACKEND_API_BASE = "http://localhost:3100"
let BACKEND_API_BASE = "http://127.0.0.1:3100"
if (process.env.INCOMING_HOOK_BODY && process.env.INCOMING_HOOK_BODY.startsWith("http")) {
// This is a value that can get set via a Netlify webhook for branch deploys
BACKEND_API_BASE = decodeURIComponent(process.env.INCOMING_HOOK_BODY)
Expand All @@ -35,15 +35,15 @@ module.exports = withBundleAnalyzer({
listingPhotoSize: process.env.LISTING_PHOTO_SIZE || "1302",
mapBoxToken: MAPBOX_TOKEN,
housingCounselorServiceUrl: HOUSING_COUNSELOR_SERVICE_URL,
gtmKey: process.env.GTM_KEY || null,
gtmKey: process.env.GTM_KEY || "",
idleTimeout: process.env.IDLE_TIMEOUT,
jurisdictionName: process.env.JURISDICTION_NAME,
cacheRevalidate: process.env.CACHE_REVALIDATE ? Number(process.env.CACHE_REVALIDATE) : 30,
cacheRevalidate: process.env.CACHE_REVALIDATE ? process.env.CACHE_REVALIDATE : "30",
cloudinaryCloudName: process.env.CLOUDINARY_CLOUD_NAME,
showPublicLottery: process.env.SHOW_PUBLIC_LOTTERY === "TRUE",
showNewSeedsDesigns: process.env.SHOW_NEW_SEEDS_DESIGNS === "TRUE",
showMandatedAccounts: process.env.SHOW_MANDATED_ACCOUNTS === "TRUE",
showPwdless: process.env.SHOW_PWDLESS === "TRUE",
showPublicLottery: process.env.SHOW_PUBLIC_LOTTERY === "TRUE" ? "TRUE" : "",
showNewSeedsDesigns: process.env.SHOW_NEW_SEEDS_DESIGNS === "TRUE" ? "TRUE" : "",
showMandatedAccounts: process.env.SHOW_MANDATED_ACCOUNTS === "TRUE" ? "TRUE" : "",
showPwdless: process.env.SHOW_PWDLESS === "TRUE" ? "TRUE" : "",
maintenanceWindow: process.env.MAINTENANCE_WINDOW,
siteMessageWindow: process.env.SITE_MESSAGE_WINDOW,
reCaptchaKey: process.env.RECAPTCHA_KEY,
Expand Down
15 changes: 7 additions & 8 deletions sites/public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"start": "NODE_OPTIONS='--require dd-trace/init' next start -p ${NEXTJS_PORT:-3000}",
"test:backend:core:dbsetup": "cd ../../ && yarn test:backend:core:dbsetup",
"dev:new-backend": "cd ../../api && yarn dev",
"dev:server-wait": "wait-on \"http-get://localhost:${PORT:-3100}/\" --httpTimeout 60000 --tcpTimeout 1500 -v --interval 15000 && yarn dev",
"dev:server-wait-new": "wait-on \"http-get://localhost:3100/\"",
"dev:server-wait-cypress": "wait-on \"http-get://localhost:${PORT:-3100}/\" --h 10000 ttpTimeout 60000 --tcpTimeout 1500 -v --interval 15000 && yarn build && yarn start",
"dev:server-wait": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" --httpTimeout 60000 --tcpTimeout 1500 -v --interval 15000 && yarn dev",
"dev:server-wait-new": "wait-on \"http-get://127.0.0.1:3100/\"",
"dev:server-wait-cypress": "wait-on \"http-get://127.0.0.1:${PORT:-3100}/\" --httpTimeout 60000 --tcpTimeout 1500 -v --interval 15000 && yarn build && yarn start",
"dev:all-cypress": "concurrently \"yarn dev:new-backend\" \"yarn dev:server-wait\"",
"dev:public-wait": "wait-on \"http://0.0.0.0:3000\"",
"dev:all": "concurrently \"yarn dev:listings\" \"yarn dev:server-wait\""
Expand All @@ -43,7 +43,7 @@
"dd-trace": "^5.30.0",
"dotenv": "^8.2.0",
"markdown-to-jsx": "^6.11.4",
"next": "^13.2.4",
"next": "^14.2.28",
"qs": "^6.10.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -56,9 +56,8 @@
"@babel/core": "^7.21.3",
"@babel/preset-env": "^7.25.7",
"@csstools/postcss-global-data": "^3.0.0",
"@cypress/code-coverage": "^3.10.1",
"@cypress/webpack-preprocessor": "^6.0.2",
"@netlify/plugin-nextjs": "4.41.3",
"@cypress/code-coverage": "^3.14.4",
"@cypress/webpack-preprocessor": "^6.0.4",
"@next/bundle-analyzer": "^10.1.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "5.17.0",
Expand All @@ -69,7 +68,7 @@
"@types/react": "^18.0.33",
"babel-loader": "^9.2.1",
"concurrently": "^5.3.0",
"cypress": "^12.8.1",
"cypress": "^14.5.0",
"jest": "^26.5.3",
"msw": "^1.3.4",
"whatwg-fetch": "^3.6.20",
Expand Down
2 changes: 0 additions & 2 deletions sites/public/src/lib/applications/ApplicationConductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,6 @@ export default class ApplicationConductor {
const stepIndex = this.steps.findIndex((step) => step.name === stepName)
if (stepIndex >= 0) {
this.currentStepIndex = stepIndex
} else {
console.error(`There is no step defined which matches ${stepName}`)
}
}

Expand Down
4 changes: 3 additions & 1 deletion sites/public/src/pages/account/application/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SubmittedApplicationView } from "../../../../components/applications/Su
import { ApplicationError } from "../../../../components/account/ApplicationCards"
import FormsLayout from "../../../../layouts/forms"

export default () => {
const AccountApplication = () => {
const router = useRouter()
const applicationId = router.query.id as string
const { applicationsService, listingsService, profile } = useContext(AuthContext)
Expand Down Expand Up @@ -76,3 +76,5 @@ export default () => {
</>
)
}

export default AccountApplication
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "../../../../components/account/ApplicationCards"
import styles from "../../../../../styles/lottery-results.module.scss"

export default () => {
const LotteryResults = () => {
const router = useRouter()
const applicationId = router.query.id as string
const { applicationsService, listingsService, profile, lotteryService } = useContext(AuthContext)
Expand Down Expand Up @@ -218,3 +218,5 @@ export default () => {
</>
)
}

export default LotteryResults
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const ApplicationAddMembers = () => {

const membersSection = application.householdMember.map((member, index) => {
return (
<CardSection divider="inset">
<CardSection divider="inset" key={index}>
<HouseholdMemberForm
editMember={editMember}
key={index}
Expand Down
Loading
0