Skip to content

Commit

Permalink
Merge pull request #488 from danactive/danactive/walk
Browse files Browse the repository at this point in the history
Walk: Fix show empty folder
  • Loading branch information
danactive committed Jan 20, 2021
2 parents 7b87a1d + c6c5d7d commit 8342bd9
Show file tree
Hide file tree
Showing 10 changed files with 6,554 additions and 7,668 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<Footer /> should render and match the snapshot 1`] = `
<footer
className="Wrapper-sc-1vkup9x-0 gVYxNQ"
className="Wrapper-sc-1vkup9x-0 fQifuW"
>
<section>
<span>
Expand All @@ -11,10 +11,10 @@ exports[`<Footer /> should render and match the snapshot 1`] = `
</section>
<section>
<div
className="Wrapper-yfxp35-0 crqZXP"
className="Wrapper-yfxp35-0 bhOCCR"
>
<select
className="Select-sc-1oowrq7-0 cyZXPE"
className="Select-sc-1oowrq7-0 eOfYC"
onChange={[Function]}
value="en"
>
Expand All @@ -41,7 +41,7 @@ exports[`<Footer /> should render and match the snapshot 1`] = `
Made with love by
<a
className="A-sc-157y2lo-0 fRhCyO"
className="A-sc-157y2lo-0 OmRZs"
href="https://twitter.com/danactive"
>
Dan BROOKS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
exports[`<Header /> should render a div 1`] = `
<div>
<div
class="NavBar___default-sc-12wxsw5-0 dklQqU"
class="NavBar___default-sc-12wxsw5-0 fVnImi"
>
<a
class="HeaderLink___default-tt8z9q-0 cgWetd"
class="HeaderLink___default-tt8z9q-0 bMKdej"
href="/"
>
<span>
Home
</span>
</a>
<a
class="HeaderLink___default-tt8z9q-0 cgWetd"
class="HeaderLink___default-tt8z9q-0 bMKdej"
href="/admin"
>
<span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<Link /> Should render and match the snapshot 1`] = `
<a
class="Link__ColouredLink-pyilfz-0 kjuicr"
href=""
class="Link__ColouredLink-pyilfz-0 hkoxpZ"
href="/some-internal-link"
/>
`;
2 changes: 1 addition & 1 deletion ui/app/components/Link/tests/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('<Link />', () => {
container: { firstChild },
} = render(
<BrowserRouter>
<Link />
<Link to="some-internal-link" />
</BrowserRouter>,
);
expect(firstChild).toMatchSnapshot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<Toggle /> should contain default text 1`] = `
<select
class="Select-sc-1oowrq7-0 cyZXPE"
class="Select-sc-1oowrq7-0 eOfYC"
>
<option
value="en"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ exports[`<App /> should render and match the snapshot 1`] = `
/>
</Switch>
<Footer />
<Memo(GlobalStyleComponent) />
<Memo(l) />
</App__AppWrapper>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

exports[`<LocaleToggle /> should match the snapshot 1`] = `
<div
class="Wrapper-yfxp35-0 crqZXP"
class="Wrapper-yfxp35-0 bhOCCR"
>
<select
class="Select-sc-1oowrq7-0 cyZXPE"
class="Select-sc-1oowrq7-0 eOfYC"
>
<option
value="en"
Expand Down
2 changes: 1 addition & 1 deletion ui/app/containers/Walk/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Walk({ location: { hash } }) {
dispatch(actions.listDirectory(qsPath));
}, [qsPath]);

const loading = statePath !== qsPath || files.length === 0;
const loading = statePath !== qsPath;

const itemFiles = files.map(file => ({
id: file.path,
Expand Down
Loading

0 comments on commit 8342bd9

Please sign in to comment.