Skip to content

Commit

Permalink
Minor frontend build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stanriders committed Oct 15, 2024
1 parent 1e82649 commit 5f8f3e7
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 99 deletions.
189 changes: 95 additions & 94 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@mantine/dates": "^4.2.7",
"@mantine/hooks": "^4.2.7",
"@mantine/modals": "^4.2.7",
"@nivo/bar": "^0.79.1",
"@nivo/core": "^0.79.0",
"@nivo/bar": "^0.80.0",
"@nivo/core": "^0.80.0",
"@reach/listbox": "^0.16.2",
"@reach/menu-button": "^0.16.2",
"@reach/tabs": "^0.16.4",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ResponseSubmission.utils.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DeepRequired, FieldErrorsImpl, FieldValues, UseFormRegister } from "react-hook-form";
import { DeepRequired, FieldErrors, FieldValues, UseFormRegister } from "react-hook-form";
import { PostContract, Question, QuestionType, SubmissionContract } from "openapi";

import CheckboxQuestion from "./Questions/CheckboxQuestion";
Expand All @@ -8,7 +8,7 @@ import FreeformInputQuestion from "./Questions/FreeformInputQuestion";
export const switchQuestionType = (
question: Question,
register: UseFormRegister<FieldValues>,
errors: FieldErrorsImpl<DeepRequired<FormData>>,
errors: FieldErrors<DeepRequired<FormData>>,
disableEditCondition: boolean
) => {
switch (question.type) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isDevelopmentEnv = process.env.NODE_ENV === "development";
function MyApp({ Component, pageProps }: AppProps) {
return (
<AllTheProviders>
<NextIntlProvider messages={pageProps.messages}>
<NextIntlProvider messages={(pageProps as any).messages}>
<NextNProgress color="#FF66AA" />
<Toaster />
<Component {...pageProps} />
Expand Down

0 comments on commit 5f8f3e7

Please sign in to comment.