Change export to default (#37558)

This commit is contained in:
Andy Richardson 2019-08-14 20:55:21 +01:00 committed by Pranav Senthilnathan
parent 47bde55ff8
commit a32cdbb4d1
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,9 @@
import * as React from 'react';
export type AlertProps = {
type?: "assertive" | "polite";
type?: 'assertive' | 'polite';
} & React.HTMLProps<HTMLDivElement>;
export const Alert: React.FC<AlertProps>;
declare const Alert: React.FC<AlertProps>;
export default Alert;

View File

@ -1,4 +1,4 @@
import { Alert } from '@reach/alert';
import Alert from '@reach/alert';
import * as React from "react";
import { render } from "react-dom";