frontend icon indicating copy to clipboard operation
frontend copied to clipboard

editor: remove showToastNotice apps/web dependency

Open hejtful opened this issue 1 year ago • 1 comments

The editor is still importing this error handling helper function from serlo.org website.

import { showToastNotice } from '@/helper/show-toast-notice'

For now, it's alright to make the react-hot-toast package a dependency for the editor and duplicate the helper. Afterwards, the editor might get its own redesigned error handling.

hejtful avatar Jul 02 '24 14:07 hejtful

imho one of the nicer handlers we have :) nice dx and only 29 lines of code aside from the react-hot-toast dependency. Would be no problem to duplicate this in the editor if it helps.

elbotho avatar Jul 02 '24 14:07 elbotho