2020-08-02 10:55:55 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Constants from "~/common/constants";
|
2020-09-05 02:15:29 +03:00
|
|
|
import * as SVG from "~/common/svg";
|
2020-08-02 10:55:55 +03:00
|
|
|
import * as System from "~/components/system";
|
|
|
|
|
2020-11-04 20:55:48 +03:00
|
|
|
import { css } from "@emotion/core";
|
2020-09-25 09:31:56 +03:00
|
|
|
import { SidebarWarningMessage } from "~/components/core/WarningMessage";
|
2020-11-11 04:44:21 +03:00
|
|
|
import { FileTypeGroup } from "~/components/core/FileTypeIcon";
|
2020-09-10 06:28:48 +03:00
|
|
|
|
2020-08-02 10:55:55 +03:00
|
|
|
export default class SidebarDragDropNotice extends React.Component {
|
|
|
|
state = {};
|
|
|
|
|
|
|
|
_handleSubmit = () => {
|
|
|
|
this.props.onSubmit({});
|
|
|
|
};
|
|
|
|
|
|
|
|
_handleCancel = () => {
|
|
|
|
this.props.onCancel();
|
|
|
|
};
|
|
|
|
|
|
|
|
_handleChange = (e) => {
|
|
|
|
this.setState({ [e.target.name]: e.target.value });
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
2020-09-08 02:28:50 +03:00
|
|
|
<System.P
|
|
|
|
style={{
|
|
|
|
fontFamily: Constants.font.semiBold,
|
|
|
|
fontSize: Constants.typescale.lvl3,
|
|
|
|
}}
|
|
|
|
>
|
2020-09-13 04:12:56 +03:00
|
|
|
Drag & drop
|
2020-09-08 02:28:50 +03:00
|
|
|
</System.P>
|
2020-11-11 04:44:21 +03:00
|
|
|
<FileTypeGroup style={{ margin: "64px 0px" }} />
|
2020-08-02 10:55:55 +03:00
|
|
|
<System.P style={{ marginTop: 24 }}>
|
2020-11-04 20:55:48 +03:00
|
|
|
Drag and drop a file anywhere on the screen to add it to your data. <br />
|
2020-08-02 10:55:55 +03:00
|
|
|
<br />
|
2020-09-10 06:28:48 +03:00
|
|
|
Dropping a file while on a slate page will add it to that slate.
|
2020-08-02 10:55:55 +03:00
|
|
|
</System.P>
|
2020-09-25 09:31:56 +03:00
|
|
|
|
|
|
|
<SidebarWarningMessage />
|
2020-08-02 10:55:55 +03:00
|
|
|
</React.Fragment>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|