UI updates (#151)
* infer card title * Infer entry body & image * infer image * Better terminology: EntryListing accept a single Collection * remove log * Refactored Collections VO into selectors * use selectors when showning card * fixed size cards * Added 'bio' and 'biography' to collection description inference synonyms * Removed unused card file * throw error instance * bugfix for file based collections * lint * moved components with css to own folder * Search Bugfix: More than one collection might be returned * Changed sidebar implementation. Closes #104 & #152 * Show spinning loading for unpublished entries * Refactored Sidebar into a separate container * Make preview widgets more robust
This commit is contained in:
13
src/actions/globalUI.js
Normal file
13
src/actions/globalUI.js
Normal file
@ -0,0 +1,13 @@
|
||||
export const TOGGLE_SIDEBAR = 'TOGGLE_SIDEBAR';
|
||||
export const OPEN_SIDEBAR = 'OPEN_SIDEBAR';
|
||||
|
||||
export function toggleSidebar() {
|
||||
return { type: TOGGLE_SIDEBAR };
|
||||
}
|
||||
|
||||
export function openSidebar(open = false) {
|
||||
return {
|
||||
type: OPEN_SIDEBAR,
|
||||
payload: { open },
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user