🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
test(ui): fix warnings (#4187)
Deluan Quintão844966df8994
diff --git a/ui/src/audioplayer/AudioTitle.test.jsx b/ui/src/audioplayer/AudioTitle.test.jsxindex c3f566f6b..7b297c07e 100644--- a/ui/src/audioplayer/AudioTitle.test.jsx+++ b/ui/src/audioplayer/AudioTitle.test.jsx@@ -12,11 +12,12 @@ vi.mock('@material-ui/core', async () => {})vi.mock('react-router-dom', () => ({- Link: ({ to, children, ...props }) => (- <a href={to} {...props}>+ // eslint-disable-next-line react/display-name+ Link: React.forwardRef(({ to, children, ...props }, ref) => (+ <a href={to} ref={ref} {...props}>{children}</a>- ),+ )),}))vi.mock('react-dnd', () => ({diff --git a/ui/src/dialogs/SaveQueueDialog.jsx b/ui/src/dialogs/SaveQueueDialog.jsxindex 69f07dab7..f916a0793 100644--- a/ui/src/dialogs/SaveQueueDialog.jsx+++ b/ui/src/dialogs/SaveQueueDialog.jsx@@ -57,7 +57,10 @@ export const SaveQueueDialog = () => {return res}).then((res) => {- notify('ra.notification.created', 'info', { smart_count: 1 })+ notify('ra.notification.created', {+ type: 'info',+ messageArgs: { smart_count: 1 },+ })dispatch(closeSaveQueueDialog())refresh()history.push(`/playlist/${res.data.id}/show`)