diff --git a/.gitignore b/.gitignore index 69f0d04eb..264b1318b 100644 --- a/.gitignore +++ b/.gitignore @@ -62,6 +62,7 @@ public .DS_Store # Yarn +yarn.lock yarn-error.log .pnp/ .pnp.js diff --git a/package.json b/package.json index a638de547..f7dd45505 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,10 @@ "react-server-dom-webpack@0.0.0-experimental-c8b778b7f-20220825": { "react": "^18.2.0" } + }, + "resolutions": { + "@types/react": "^18.2.0", + "@types/react-dom": "^18.2.0" }, "scripts": { "lint": "eslint 'src/**/*' 'lib/**/*' 'gatsby/**/*'", diff --git a/src/components/ExternalLink.tsx b/src/components/ExternalLink.tsx index 46676c995..ffca8f806 100644 --- a/src/components/ExternalLink.tsx +++ b/src/components/ExternalLink.tsx @@ -1,22 +1,22 @@ import * as React from "react" -import { styled } from '@mui/material/styles'; +import { styled } from "@mui/material/styles" -import { Tooltip } from "@mui/material" +import { Tooltip } from "@mui/material" import { Launch } from "@mui/icons-material" import clsx from "classnames" -import {PropsWithChildren} from 'react'; +import { PropsWithChildren } from "react" -const PREFIX = 'ExternalLink'; +const PREFIX = "ExternalLink" const classes = { link: `${PREFIX}-link`, icon: `${PREFIX}-icon`, - hover: `${PREFIX}-hover` -}; + hover: `${PREFIX}-hover`, +} -const Root = styled('div')(() => ({ +const Root = styled("span")(() => ({ [`& .${classes.link}`]: { display: "inline-flex", alignItems: "center", @@ -32,8 +32,8 @@ const Root = styled('div')(() => ({ opacity: 1.0, }, opacity: 0.3, - } -})); + }, +})) type Props = { href: string @@ -41,27 +41,31 @@ type Props = { hover?: true | undefined } -const ExternalLink: React.FC> = ({ href, title, children, hover }) => { - +const ExternalLink: React.FC> = ({ + href, + title, + children, + hover, +}) => { return ( - - - - {children} - - - - - ); + + + + {children} + + + + + ) } export default ExternalLink diff --git a/tsconfig.json b/tsconfig.json index 5dde7bdc6..db029a2fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -113,6 +113,7 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */, "baseUrl": "./src", + "noEmit": true, "paths": { "@/*": ["./*"] }