Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Chore/dependencies 2021 10 01 (#101)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* fix: adjust type
  • Loading branch information
pixelass authored Oct 1, 2021
1 parent 00e1dee commit 36d3e8b
Show file tree
Hide file tree
Showing 3 changed files with 422 additions and 285 deletions.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "next build",
"build:dev": "npx [email protected] NODE_ENV=development next build",
"build:analyze": "npx [email protected] ANALYZE=true next build",
"cypress": "npx cypress@8.4.0",
"cypress": "npx cypress@8.5.0",
"cypress:run": "yarn cypress run --record",
"cypress:run:firefox": "yarn cypress run --record --browser firefox",
"cypress:run:chrome": "yarn cypress run --record --browser chrome",
Expand All @@ -21,7 +21,7 @@
"graphql:setup": "node prepare/graphql-setup.js",
"graphql:types": "graphql-codegen --require dotenv/config --config codegen.yml",
"lint": "yarn tsc:noEmit && yarn xo && yarn stylelint && next lint",
"ncu": "npx [email protected].3",
"ncu": "npx [email protected].5",
"ncu:minor": "yarn ncu -t minor",
"ncu:patch": "yarn ncu -t patch",
"npmrc:setup": "node prepare/npmrc.js",
Expand All @@ -40,61 +40,61 @@
"xo:fix": "yarn xo --fix"
},
"dependencies": {
"@apollo/client": "3.4.12",
"@apollo/client": "3.4.15",
"@apollo/react-hooks": "4.0.0",
"@contentful/rich-text-react-renderer": "15.4.0",
"@contentful/rich-text-types": "15.3.6",
"@dekk-app/dekk-backend": "1.11.0",
"@dekk-app/dekk-backend": "1.12.0",
"@emotion/cache": "11.4.0",
"@emotion/core": "11.0.0",
"@emotion/react": "11.4.1",
"@emotion/server": "11.4.0",
"@emotion/styled": "11.3.0",
"@sentry/nextjs": "6.12.0",
"@sentry/nextjs": "6.13.2",
"@xobotyi/scrollbar-width": "1.9.5",
"axios": "0.21.4",
"axios": "0.22.0",
"date-fns": "2.24.0",
"deepmerge": "4.2.2",
"focus-trap-react": "8.7.1",
"graphql": "15.5.3",
"focus-trap-react": "8.8.1",
"graphql": "15.6.0",
"lodash.isequal": "4.5.0",
"next": "11.1.2",
"next-auth": "3.29.0",
"next-i18next": "8.8.0",
"nodemailer": "6.6.3",
"nodemailer": "6.6.5",
"prop-types": "15.7.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "7.15.3",
"react-hook-form": "7.16.2",
"react-is": "17.0.2",
"react-lottie-player": "1.4.0",
"react-textarea-autosize": "8.3.3",
"sitemap": "7.0.0",
"tslib": "2.3.1",
"use-cookie-consent": "0.1.15",
"use-cookie-consent": "0.1.18",
"use-debounce": "7.0.0",
"zustand": "3.5.10"
"zustand": "3.5.11"
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/preset-typescript": "^7.15.0",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/cli": "^13.2.0",
"@commitlint/config-conventional": "^13.2.0",
"@emotion/babel-plugin": "^11.3.0",
"@graphql-codegen/cli": "^2.2.0",
"@graphql-codegen/typescript": "^2.2.2",
"@graphql-codegen/typescript-operations": "^2.1.4",
"@graphql-codegen/typescript-operations": "^2.1.5",
"@next/bundle-analyzer": "^11.1.2",
"@types/lodash.isequal": "^4.5.5",
"@types/lodash.take": "^4.1.6",
"@types/node": "^16.9.2",
"@types/node": "^16.10.2",
"@types/nodemailer": "^6.4.4",
"@types/react": "^17.0.21",
"@types/react": "^17.0.26",
"@types/react-dom": "^17.0.9",
"@types/react-textarea-autosize": "^4.3.6",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^4.32.0",
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
"cypress-cucumber-preprocessor": "^4.2.0",
"dotenv": "^10.0.0",
Expand All @@ -105,7 +105,7 @@
"eslint-config-xo-react": "^0.25.0",
"eslint-config-xo-typescript": "^0.44.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.25.2",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^7.0.2",
"lodash.take": "^4.1.1",
Expand All @@ -119,9 +119,9 @@
"stylelint-order": "^4.1.0",
"stylelint-processor-styled-components": "^1.10.0",
"ts-node": "^10.2.1",
"type-fest": "^2.3.3",
"type-fest": "^2.3.4",
"typescript": "^4.4.3",
"webpack": "^5.53.0",
"webpack": "^5.55.1",
"xo": "^0.44.0"
}
}
10 changes: 5 additions & 5 deletions src/groups/contact-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import InputField from "@/molecules/input-field";
import TextArea from "@/molecules/textarea-field";
import Transdown from "@/organisms/transdown";
import { ContactFormProps } from "@/types";
import axios from "axios";
import axios, { AxiosResponse } from "axios";
import { useTranslation } from "next-i18next";
import dynamic from "next/dynamic";
import { useRouter } from "next/router";
Expand All @@ -27,10 +27,10 @@ const ContactForm = () => {
async (data: ContactFormProps) => {
setLoading(true);
try {
const response = await axios.post<{ status?: number; error?: unknown }>(
`/api/mail?locale=${locale}`,
data
);
const response = await axios.post<
ContactFormProps,
AxiosResponse<{ status?: number; error?: unknown }>
>(`/api/mail?locale=${locale}`, data);
switch (response.data.status) {
case 200:
setContactSuccess(true);
Expand Down
Loading

1 comment on commit 36d3e8b

@vercel
Copy link

@vercel vercel bot commented on 36d3e8b Oct 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.