mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 05:29:12 +08:00
Use explicit export
This commit is contained in:
@@ -1,2 +1 @@
|
||||
export * from "./BaseButton";
|
||||
export { default } from "./BaseButton";
|
||||
export { default, BaseButtonProps } from "./BaseButton";
|
||||
|
||||
@@ -4,6 +4,7 @@ import { StatelessComponent } from "react";
|
||||
|
||||
import { pascalCase } from "talk-common/utils";
|
||||
import { withForwardRef, withStyles } from "talk-ui/hocs";
|
||||
import { PropTypesOf } from "talk-ui/types";
|
||||
|
||||
import * as styles from "./Flex.css";
|
||||
|
||||
@@ -75,4 +76,6 @@ Flex.defaultProps = {
|
||||
alignItems: "center",
|
||||
};
|
||||
|
||||
export default withForwardRef(withStyles(styles)(Flex));
|
||||
const enhanced = withForwardRef(withStyles(styles)(Flex));
|
||||
export default enhanced;
|
||||
export type FlexProps = PropTypesOf<typeof enhanced>;
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from "./Flex";
|
||||
export { default } from "./Flex";
|
||||
export { default, FlexProps } from "./Flex";
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from "./Icon";
|
||||
export { default } from "./Icon";
|
||||
export { default, IconProps } from "./Icon";
|
||||
|
||||
@@ -2,6 +2,8 @@ import React from "react";
|
||||
import { ReactNode, StatelessComponent } from "react";
|
||||
import Responsive, { MediaQueryMatchers } from "react-responsive";
|
||||
|
||||
import { PropTypesOf } from "talk-ui/types";
|
||||
|
||||
import theme from "../../theme/variables";
|
||||
import UIContext from "../UIContext";
|
||||
|
||||
@@ -45,3 +47,4 @@ const MatchMediaWithContext: StatelessComponent<InnerProps> = props => (
|
||||
);
|
||||
|
||||
export default MatchMediaWithContext;
|
||||
export type MatchMediaProps = PropTypesOf<typeof MatchMediaWithContext>;
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from "./MatchMedia";
|
||||
export { default } from "./MatchMedia";
|
||||
export { default, MatchMediaProps } from "./MatchMedia";
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from "./RelativeTime";
|
||||
export { default } from "./RelativeTime";
|
||||
export { default, RelativeTimeProps } from "./RelativeTime";
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from "./TrapFocus";
|
||||
export { default } from "./TrapFocus";
|
||||
export { default, TrapFocusProps } from "./TrapFocus";
|
||||
|
||||
@@ -144,5 +144,5 @@ Typography.defaultProps = {
|
||||
};
|
||||
|
||||
const enhanced = withForwardRef(withStyles(styles)(Typography));
|
||||
export type CenterProps = PropTypesOf<typeof enhanced>;
|
||||
export type TypographyProps = PropTypesOf<typeof enhanced>;
|
||||
export default enhanced;
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from "./Typography";
|
||||
export { default } from "./Typography";
|
||||
export { default, TypographyProps } from "./Typography";
|
||||
|
||||
Reference in New Issue
Block a user