Beautify FYP toast

This commit is contained in:
infinite-persistence 2022-03-24 16:12:59 +08:00
parent c970176386
commit 173ab36451
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 8 additions and 2 deletions

View file

@ -2166,7 +2166,8 @@
"Remove all unavailable claims": "Remove all unavailable claims", "Remove all unavailable claims": "Remove all unavailable claims",
"Recommended For You": "Recommended For You", "Recommended For You": "Recommended For You",
"Recommended": "Recommended", "Recommended": "Recommended",
"Recommendation removed. Thanks for the feedback!": "Recommendation removed. Thanks for the feedback!", "Recommendation removed.!": "Recommendation removed.",
"Thanks for the feedback!": "Thanks for the feedback!",
"Hide Chat": "Hide Chat", "Hide Chat": "Hide Chat",
"Popout Chat": "Popout Chat", "Popout Chat": "Popout Chat",
"Chat Hidden": "Chat Hidden", "Chat Hidden": "Chat Hidden",

View file

@ -303,7 +303,12 @@ export const doRemovePersonalRecommendation = (uri: string) => (dispatch: Dispat
.ignoreRecommendation(user.id, personalRecommendations.gid, claimId, hideChannel) .ignoreRecommendation(user.id, personalRecommendations.gid, claimId, hideChannel)
.then((res) => { .then((res) => {
dispatch({ type: ACTIONS.FYP_HIDE_URI, data: { uri } }); dispatch({ type: ACTIONS.FYP_HIDE_URI, data: { uri } });
dispatch(doToast({ message: __('Recommendation removed. Thanks for the feedback!') })); dispatch(
doToast({
message: __('Recommendation removed.'),
subMessage: __('Thanks for the feedback!'),
})
);
}) })
.catch((err) => { .catch((err) => {
console.log('doRemovePersonalRecommendation:', err); console.log('doRemovePersonalRecommendation:', err);