Skip to content

Commit

Permalink
Merge pull request #149 from rgbkrk/refactor-serverf-s3
Browse files Browse the repository at this point in the history
S3 Content Provider Adaptation
  • Loading branch information
cabhishek committed Apr 24, 2017
2 parents afb240a + 4416717 commit e788923
Show file tree
Hide file tree
Showing 17 changed files with 1,105 additions and 973 deletions.
16 changes: 7 additions & 9 deletions packages/commuter-directory-listing/src/DirectoryListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { Table, Grid, Segment, Icon } from "semantic-ui-react";
import { Link } from "react-router-dom";

const DirectoryListing = props => {
const handleClick = path =>
e => {
if (props.onClick) {
e.preventDefault();
props.onClick(path);
}
};
const handleClick = path => e => {
if (props.onClick) {
e.preventDefault();
props.onClick(path);
}
};
const base = props.basepath;
return (
<Grid>
Expand All @@ -21,8 +20,7 @@ const DirectoryListing = props => {
</Table.Header>
<Table.Body>
{props.contents.map((row, index) => {
const fullPath = `${base}${row.path}`;

const fullPath = `${base}/${row.path}`;
switch (row.type) {
case "notebook":
return (
Expand Down

0 comments on commit e788923

Please sign in to comment.