mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 06:44:59 +08:00
Ordering code, alerts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as React from "react";
|
||||
import { StatelessComponent } from "react";
|
||||
|
||||
import { Flex, Button, Popup, Typography } from "talk-ui/components";
|
||||
import { Button, Flex, Popup, Typography } from "talk-ui/components";
|
||||
|
||||
interface AuthProps {
|
||||
open: boolean;
|
||||
|
||||
@@ -4,10 +4,10 @@ import { StatelessComponent } from "react";
|
||||
|
||||
import { Button, Flex } from "talk-ui/components";
|
||||
|
||||
import AuthContainer from "../containers/AuthContainer";
|
||||
import CommentContainer from "../containers/CommentContainer";
|
||||
import PostCommentFormContainer from "../containers/PostCommentFormContainer";
|
||||
import ReplyListContainer from "../containers/ReplyListContainer";
|
||||
import AuthContainer from "../containers/AuthContainer";
|
||||
import * as styles from "./Stream.css";
|
||||
|
||||
export interface StreamProps {
|
||||
|
||||
@@ -3,30 +3,30 @@ import * as React from "react";
|
||||
import Auth from "../components/Auth";
|
||||
|
||||
class AuthContainer extends React.Component {
|
||||
state = {
|
||||
public state = {
|
||||
open: false,
|
||||
focus: false,
|
||||
};
|
||||
|
||||
openPopup = () => {
|
||||
public openPopup = () => {
|
||||
this.setState({
|
||||
open: true,
|
||||
});
|
||||
};
|
||||
|
||||
closePopup = () => {
|
||||
public closePopup = () => {
|
||||
this.setState({
|
||||
open: false,
|
||||
});
|
||||
};
|
||||
|
||||
setFocus = (focus: boolean) => {
|
||||
public setFocus = (focus: boolean) => {
|
||||
this.setState({
|
||||
focus,
|
||||
});
|
||||
};
|
||||
|
||||
render() {
|
||||
public render() {
|
||||
const { open, focus } = this.state;
|
||||
return (
|
||||
<Auth
|
||||
|
||||
Reference in New Issue
Block a user