Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { useHover } from '../common/withHover'
import withErrorBoundary from '../common/withErrorBoundary'
import PlusOneIcon from '@material-ui/icons/PlusOne';
import UndoIcon from '@material-ui/icons/Undo';
import StarIcon from '@material-ui/icons/Star';
import ClearIcon from '@material-ui/icons/Clear';
import * as _ from 'underscore';

Expand All @@ -23,16 +22,6 @@ const SunshineCuratedSuggestionsItem = ({post}: {
fragmentName: 'PostsList',
});

const handleCurate = () => {
void updatePost({
selector: {_id: post._id},
data: {
reviewForCuratedUserId: currentUser!._id,
curatedDate: new Date(),
}
})
}

const handleDisregardForCurated = () => {
void updatePost({
selector: {_id: post._id},
Expand Down Expand Up @@ -106,9 +95,6 @@ const SunshineCuratedSuggestionsItem = ({post}: {
<UndoIcon/>
</Components.SidebarAction>
}
<Components.SidebarAction title="Curate Post" onClick={handleCurate}>
<StarIcon/>
</Components.SidebarAction>
<Components.SidebarAction title="Remove from Curation Suggestions" onClick={handleDisregardForCurated}>
<ClearIcon/>
</Components.SidebarAction>
Expand Down