2019-08-31 15:28:29 +00:00
|
|
|
import React, { Component, Fragment } from "react";
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import GoToFolderButton from "./components/GoToFolderButton";
|
2019-11-07 18:27:34 +00:00
|
|
|
import $ from "jquery"; // Fixes a AMD module definition error due to webpack
|
2019-08-31 15:28:29 +00:00
|
|
|
|
|
|
|
export default class TaskView extends Component {
|
|
|
|
static propTypes = {
|
2019-09-07 15:31:27 +00:00
|
|
|
folderUrl: PropTypes.string.isRequired,
|
2019-11-07 16:22:49 +00:00
|
|
|
}
|
2019-08-31 15:28:29 +00:00
|
|
|
|
|
|
|
render() {
|
|
|
|
const {
|
|
|
|
folderUrl,
|
2019-09-07 15:31:27 +00:00
|
|
|
} = this.props;
|
2019-08-31 15:28:29 +00:00
|
|
|
return (
|
|
|
|
<Fragment>
|
|
|
|
{folderUrl ?
|
|
|
|
<GoToFolderButton
|
|
|
|
folderUrl={folderUrl}
|
|
|
|
/>
|
|
|
|
: ""}
|
|
|
|
</Fragment>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|