<img className='announcements__mastodon' alt='' draggable='false' src={mascot || elephantUIPlane} />
<div className='announcements__container'>
- <ReactSwipeableViews animateHeight index={index} onChangeIndex={this.handleChangeIndex}>
+ <ReactSwipeableViews animateHeight={!reduceMotion} adjustHeight={reduceMotion} index={index} onChangeIndex={this.handleChangeIndex}>
{announcements.map(announcement => (
<Announcement
key={announcement.get('id')}
const initialState = ImmutableMap({
items: ImmutableList(),
isLoading: false,
- show: true,
+ show: false,
unread: ImmutableSet(),
});
const items = fromJS(action.announcements);
map.set('unread', ImmutableSet());
- map.set('items', items);
- map.set('isLoading', false);
addUnread(map, items);
+
+ map.set('items', items);
+ map.set('isLoading', false);
});
case ANNOUNCEMENTS_FETCH_FAIL:
return state.set('isLoading', false);