Skip to content

Commit

Permalink
chore(examples): Updated examples to no longer import React
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Nov 22, 2021
1 parent fb06b47 commit c0b8cb5
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/create-react-app-typescript/src/App.tsx
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react";
import type { ReactElement } from "react";
import { Route, Switch } from "react-router-dom";

import Layout from "components/Layout";
Expand Down
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react";
import type { ReactElement } from "react";
import { TextContainer, Text } from "react-md";

export default function Home(): ReactElement {
Expand Down
@@ -1,4 +1,4 @@
import React, { ReactElement, ReactNode } from "react";
import type { ReactElement, ReactNode } from "react";
import { Link, useLocation } from "react-router-dom";
import {
ArrowDropDownSVGIcon,
Expand Down
@@ -1,4 +1,4 @@
import React, { ReactNode } from "react";
import type { ReactNode } from "react";
import {
LayoutNavigationTree,
LayoutNavigationItem,
Expand Down
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react";
import type { ReactElement } from "react";
import { TextContainer, Text } from "react-md";

export default function Route1(): ReactElement {
Expand Down
2 changes: 1 addition & 1 deletion examples/gatsby-typescript/src/pages/index.tsx
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react"
import type { ReactElement } from "react"
import { Text, TextContainer } from "react-md"

export default function index(): ReactElement {
Expand Down
2 changes: 1 addition & 1 deletion examples/gatsby-typescript/src/pages/route-1.tsx
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react"
import type { ReactElement } from "react"
import { TextContainer, Text } from "react-md"

export default function Route1(): ReactElement {
Expand Down
@@ -1,4 +1,4 @@
import React, { ReactElement, ReactNode } from "react";
import type { ReactElement, ReactNode } from "react";
import { useRouter } from "next/router";
import {
ArrowDropDownSVGIcon,
Expand Down
@@ -1,4 +1,4 @@
import React, { ReactNode } from "react";
import type { ReactNode } from "react";
import {
LayoutNavigationTree,
LayoutNavigationItem,
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-typescript/src/components/LinkUnstyled.tsx
@@ -1,4 +1,4 @@
import React, { ReactElement, AnchorHTMLAttributes } from "react";
import type { ReactElement, AnchorHTMLAttributes } from "react";
import Link, { LinkProps } from "next/link";

export interface LinkUnstyledProps
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-typescript/src/pages/_app.tsx
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react";
import type { ReactElement } from "react";
import Head from "next/head";
import { AppProps } from "next/app";

Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-typescript/src/pages/index.tsx
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react";
import type { ReactElement } from "react";
import { Text, TextContainer } from "react-md";

export default function index(): ReactElement {
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-typescript/src/pages/route-1.tsx
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react";
import type { ReactElement } from "react";
import { TextContainer, Text } from "react-md";

export default function Route1(): ReactElement {
Expand Down

1 comment on commit c0b8cb5

@vercel
Copy link

@vercel vercel bot commented on c0b8cb5 Nov 22, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.