|
|
|
@@ -32,6 +32,16 @@ const FilesPage = ({ history }) => { |
|
|
|
return name; |
|
|
|
}; |
|
|
|
|
|
|
|
const ColoredLine = () => ( |
|
|
|
<hr |
|
|
|
style={{ |
|
|
|
color: "#F5F5F5", |
|
|
|
backgroundColor: "#F5F5F5", |
|
|
|
height: 1, |
|
|
|
}} |
|
|
|
/> |
|
|
|
); |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|
<div className="l-t-rectangle"></div> |
|
|
|
@@ -46,23 +56,40 @@ const FilesPage = ({ history }) => { |
|
|
|
<div style={{ marginBottom: "50px" }}> |
|
|
|
<div style={{ marginBottom: "30px" }}> |
|
|
|
<h1 className="page-heading">Folderi</h1> |
|
|
|
<ColoredLine /> |
|
|
|
<div className="page-navigation-buttons"> |
|
|
|
<IconButton |
|
|
|
className="c-btn c-btn--primary-outlined files-view-page-delete-btn" |
|
|
|
<div |
|
|
|
onClick={() => history.push({ pathname: FILES_PAGE })} |
|
|
|
style={{ marginLeft: 0 }} |
|
|
|
className="files-file-routing" |
|
|
|
> |
|
|
|
<p>Root</p> |
|
|
|
</IconButton> |
|
|
|
Root |
|
|
|
</div> |
|
|
|
{childParentRelations.map((relation) => ( |
|
|
|
<IconButton |
|
|
|
className="c-btn c-btn--primary-outlined files-view-page-delete-btn" |
|
|
|
<div |
|
|
|
style={{ display: "flex", alignItems: "center" }} |
|
|
|
key={relation.id} |
|
|
|
onClick={() => history.push({ pathname: relation.id })} |
|
|
|
> |
|
|
|
<p>{relation.name}</p> |
|
|
|
</IconButton> |
|
|
|
<span |
|
|
|
style={{ |
|
|
|
cursor: "auto", |
|
|
|
color: "#A9A9A9", |
|
|
|
fontWeight: "bold", |
|
|
|
marginLeft: "10px", |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
</span> |
|
|
|
<div |
|
|
|
className="files-file-routing" |
|
|
|
onClick={() => history.push({ pathname: relation.id })} |
|
|
|
> |
|
|
|
{relation.name} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
))} |
|
|
|
</div> |
|
|
|
<ColoredLine /> |
|
|
|
</div> |
|
|
|
<div className="files-page-categories"> |
|
|
|
{categories && |
|
|
|
@@ -116,7 +143,7 @@ FilesPage.propTypes = { |
|
|
|
pathname: PropTypes.string, |
|
|
|
}), |
|
|
|
}), |
|
|
|
setFile:PropTypes.func |
|
|
|
setFile: PropTypes.func, |
|
|
|
}; |
|
|
|
|
|
|
|
export default FilesPage; |