Skip to content

Commit

Permalink
Switch to recommended React import
Browse files Browse the repository at this point in the history
  • Loading branch information
mnvr committed Mar 3, 2023
1 parent 0b59472 commit 42fa8c3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/Column.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { PropsWithChildren } from "react";
import * as React from "react";
import styled from "styled-components";

const Column: React.FC<PropsWithChildren> = ({ children }) => {
const Column: React.FC<React.PropsWithChildren> = ({ children }) => {
return (
<Grid>
<div />
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomHead.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { graphql, useStaticQuery } from "gatsby";
import React from "react";
import * as React from "react";
import { replaceNullsWithUndefineds } from "utils/replace-nulls";

interface CustomHeadProps {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CustomHead from "components/CustomHead";
import { HeadFC, Link, PageProps } from "gatsby";
import React from "react";
import * as React from "react";
import styled from "styled-components";

const NotFoundPage: React.FC<PageProps> = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import type { HeadFC, PageProps } from "gatsby";
import * as React from "react";

const items = [
{
Expand Down
3 changes: 1 addition & 2 deletions src/templates/default.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Column from "components/Column";
import CustomHead from "components/CustomHead";
import { graphql, HeadFC, PageProps } from "gatsby";
import React from "react";
import * as React from "react";
import styled from "styled-components";
import type { Context } from "types";
import { replaceNullsWithUndefineds } from "utils/replace-nulls";
Expand Down

0 comments on commit 42fa8c3

Please sign in to comment.