diff --git a/src/core/client/stream/components/Comment.css b/src/core/client/stream/components/Comment.css index 8e5301ecd..4e23b2d02 100644 --- a/src/core/client/stream/components/Comment.css +++ b/src/core/client/stream/components/Comment.css @@ -9,11 +9,3 @@ .author { font-weight: $font-weight-medium; } - -.shareButton { - padding: 10px 0; -} - -.input { - margin-right: 5px; -} diff --git a/src/core/client/stream/components/Comment.tsx b/src/core/client/stream/components/Comment.tsx index 014989a51..a332b42a3 100644 --- a/src/core/client/stream/components/Comment.tsx +++ b/src/core/client/stream/components/Comment.tsx @@ -28,7 +28,7 @@ const Comment: StatelessComponent = props => { {props.body}
- +
); diff --git a/src/core/client/stream/components/PermalinkPopover.css b/src/core/client/stream/components/PermalinkPopover.css new file mode 100644 index 000000000..ffc0a1b6c --- /dev/null +++ b/src/core/client/stream/components/PermalinkPopover.css @@ -0,0 +1,13 @@ +.shareButton { + composes: button from "talk-ui/shared/typography.css"; + composes: buttonReset from "talk-ui/shared/buttonReset.css"; + padding: 10px 0; +} + +.textField { + margin-right: 5px; +} + +.root { + background-color: #fff; +} diff --git a/src/core/client/stream/components/PermalinkPopover.tsx b/src/core/client/stream/components/PermalinkPopover.tsx index cd110dfe3..7d9bf8ade 100644 --- a/src/core/client/stream/components/PermalinkPopover.tsx +++ b/src/core/client/stream/components/PermalinkPopover.tsx @@ -1,22 +1,27 @@ import React from "react"; import CopyToClipboard from "react-copy-to-clipboard"; -import { Button, Input, Popover } from "talk-ui/components"; +import { Button, Popover, TextField } from "talk-ui/components"; +import * as styles from "./PermalinkPopover.css"; -class PermalinkPopover extends React.Component { +interface InnerProps { + commentId: string; +} + +class PermalinkPopover extends React.Component { public render() { - const props = this.props; + const { commentId } = this.props; return ( - - +
+ +
} > - +
); } diff --git a/src/core/client/ui/components/Input/Input.css b/src/core/client/ui/components/Input/Input.css deleted file mode 100644 index 4d2e9e88a..000000000 --- a/src/core/client/ui/components/Input/Input.css +++ /dev/null @@ -1,11 +0,0 @@ -.root { - font-family: "Source Sans Pro"; - font-weight: 400; - font-size: 16px; - letter-spacing: calc(0.57em / 16); - background: #ffffff; - border: 1px solid #979797; - box-sizing: border-box; - border-radius: 1px; - padding: 5px 20px; -} diff --git a/src/core/client/ui/components/Input/Input.tsx b/src/core/client/ui/components/Input/Input.tsx deleted file mode 100644 index 261b3b1af..000000000 --- a/src/core/client/ui/components/Input/Input.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import cn from "classnames"; -import React, { InputHTMLAttributes, StatelessComponent } from "react"; - -import * as styles from "./Input.css"; - -interface InnerProps extends InputHTMLAttributes { - classes?: typeof styles; -} - -const Input: StatelessComponent = ({ className, ...rest }) => { - return ; -}; - -export default Input; diff --git a/src/core/client/ui/components/Input/index.ts b/src/core/client/ui/components/Input/index.ts deleted file mode 100644 index ae0d7a775..000000000 --- a/src/core/client/ui/components/Input/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./Input"; -export { default } from "./Input"; diff --git a/src/core/client/ui/components/index.ts b/src/core/client/ui/components/index.ts index 9f16ee536..66ed5bee4 100644 --- a/src/core/client/ui/components/index.ts +++ b/src/core/client/ui/components/index.ts @@ -3,4 +3,4 @@ export { default as Button } from "./Button"; export { default as Center } from "./Center"; export { default as Typography } from "./Typography"; export { default as Popover } from "./Popover"; -export { default as Input } from "./Input"; +export { default as TextField } from "./TextField"; diff --git a/src/core/client/ui/hocs/withFowardedRefs.tsx b/src/core/client/ui/hocs/withFowardedRefs.tsx deleted file mode 100644 index 6fe7a726c..000000000 --- a/src/core/client/ui/hocs/withFowardedRefs.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from "react"; - -export function forwardRef( - WrappedComponent: React.ComponentType -): React.RefForwardingComponent { - return React.forwardRef((props, ref) => { - return ; - }); -}