-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* search for related records only within BLR community * adjust empty search results to absence of search bar * add a new loader placeholder
- Loading branch information
1 parent
23f1e3a
commit d4d71c7
Showing
5 changed files
with
35 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...rdm/assets/semantic-ui/js/zenodo_rdm/src/blr-related-works/components/BlrResultsLoader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import { Placeholder } from "semantic-ui-react"; | ||
|
||
export const BlrResultsLoader = (children, loading) => { | ||
return loading ? ( | ||
<Placeholder fluid className="rel-mt-3"> | ||
<Placeholder.Header image> | ||
<Placeholder.Line length="full" /> | ||
<Placeholder.Line length="medium" /> | ||
</Placeholder.Header> | ||
<Placeholder.Header image> | ||
<Placeholder.Line length="full" /> | ||
<Placeholder.Line length="medium" /> | ||
</Placeholder.Header> | ||
</Placeholder> | ||
) : ( | ||
children | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters