mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-27 11:03:23 +03:00
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
import * as React from "react";
|
|
import * as Constants from "~/common/constants";
|
|
import * as SVG from "~/common/svg";
|
|
import * as System from "~/components/system";
|
|
|
|
import { css } from "@emotion/react";
|
|
import { SidebarWarningMessage } from "~/components/core/WarningMessage";
|
|
import { FileTypeGroup } from "~/components/core/FileTypeIcon";
|
|
|
|
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>
|
|
<System.P1
|
|
style={{
|
|
fontFamily: Constants.font.semiBold,
|
|
fontSize: Constants.typescale.lvl3,
|
|
}}
|
|
>
|
|
Drag & drop
|
|
</System.P1>
|
|
<FileTypeGroup style={{ margin: "64px 0px" }} />
|
|
<System.P1 style={{ marginTop: 24 }}>
|
|
Drag and drop a file anywhere on the screen to add it to your data. Dropping a file while
|
|
on a collection page will add it to that collection.
|
|
</System.P1>
|
|
|
|
<SidebarWarningMessage />
|
|
</React.Fragment>
|
|
);
|
|
}
|
|
}
|