diff --git a/.env.development b/.env.development index ebca46f..ecf4164 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,4 @@ +NEXT_DEPLOY_ENV=development +; NEXT_SENTRY_DSN= NEXT_PUBLIC_API_URL=https://api.dev.sahkoinsinoorikilta.fi/api NEXT_PUBLIC_SITE_URL=https://dev.sahkoinsinoorikilta.fi diff --git a/.env.prod b/.env.prod index c148bfe..3a4096f 100644 --- a/.env.prod +++ b/.env.prod @@ -1,2 +1,4 @@ +NEXT_DEPLOY_ENV=production +; NEXT_SENTRY_DSN= NEXT_PUBLIC_API_URL=https://api.sahkoinsinoorikilta.fi/api NEXT_PUBLIC_SITE_URL=https://sahkoinsinoorikilta.fi diff --git a/.env.test b/.env.test index ebca46f..d02c73b 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,3 @@ +NEXT_DEPLOY_ENV=test NEXT_PUBLIC_API_URL=https://api.dev.sahkoinsinoorikilta.fi/api NEXT_PUBLIC_SITE_URL=https://dev.sahkoinsinoorikilta.fi diff --git a/.eslintrc.js b/.eslintrc.js index ccbcd96..8863487 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,6 +34,8 @@ module.exports = { ], "react/jsx-props-no-spreading": "off", "react/jsx-one-expression-per-line": "off", + "react/require-default-props": "off", + "react/default-props-match-prop-types": "off", // Temp "react/no-array-index-key": "warn", "jsx-a11y/label-has-associated-control": "off", diff --git a/src/components/Widgets/MarkdownEditorWidget.tsx b/src/components/Widgets/MarkdownEditorWidget.tsx index db1d1b5..9e8193e 100644 --- a/src/components/Widgets/MarkdownEditorWidget.tsx +++ b/src/components/Widgets/MarkdownEditorWidget.tsx @@ -4,9 +4,7 @@ import ReactMde from "react-mde"; import { WidgetProps } from "@rjsf/core"; import MarkdownStyles from "@views/common/MarkdownStyles"; -type MarkdownEditorWidgetProps = Omit & { - options: unknown; -}; +type MarkdownEditorWidgetProps = WidgetProps; const Container = styled.div` background: white;