From 3a77e584530edb651c77f40a10142b034e647239 Mon Sep 17 00:00:00 2001 From: mohammad-rework Date: Sun, 2 Jan 2022 13:31:48 +0330 Subject: [PATCH] sign-up-success to TS --- src/pages/signup-success/{index.js => index.tsx} | 5 ----- tsconfig.json | 9 +++++---- 2 files changed, 5 insertions(+), 9 deletions(-) rename src/pages/signup-success/{index.js => index.tsx} (97%) diff --git a/src/pages/signup-success/index.js b/src/pages/signup-success/index.tsx similarity index 97% rename from src/pages/signup-success/index.js rename to src/pages/signup-success/index.tsx index 3bcc6d62f56..2b69d0ce2c1 100644 --- a/src/pages/signup-success/index.js +++ b/src/pages/signup-success/index.tsx @@ -1,6 +1,5 @@ import React, { useEffect, useState } from 'react' import styled from 'styled-components' -import PropTypes from 'prop-types' import { graphql, StaticQuery, navigate } from 'gatsby' import { getLanguage } from '../../common/utility' import Layout from 'components/layout/layout' @@ -103,8 +102,4 @@ const SignupSuccess = () => { ) } -SignupSuccess.propTypes = { - autofocus: PropTypes.bool, -} - export default WithIntl()(SignupSuccess) diff --git a/tsconfig.json b/tsconfig.json index 9f1f79104e5..affe19b49d8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "include": ["./src/**/*", "./src/custom.d.ts"], - "jsx": "react", - "compilerOptions": { + "jsx": "react", + "compilerOptions": { "baseUrl": "src", "jsx": "preserve", "esModuleInterop": true, @@ -9,6 +9,7 @@ "emitDecoratorMetadata": true, "noEmit": true, "skipLibCheck": true, - "moduleResolution": "node" - } + "moduleResolution": "node", + "lib": ["dom", "dom.iterable", "ES2021.String"] + } }