Add Share to Context menus, also share artist

This commit is contained in:
Deluan
2023-01-24 13:35:51 -05:00
parent 051e9c556d
commit 433da37982
5 changed files with 50 additions and 8 deletions
+4 -1
View File
@@ -12,7 +12,7 @@ import {
useNotify,
useTranslate,
} from 'react-admin'
import { useState } from 'react'
import { useEffect, useState } from 'react'
import { shareUrl } from '../utils'
import { useTranscodingOptions } from './useTranscodingOptions'
import { useDispatch, useSelector } from 'react-redux'
@@ -26,6 +26,9 @@ export const ShareDialog = () => {
const notify = useNotify()
const translate = useTranslate()
const [description, setDescription] = useState('')
useEffect(() => {
setDescription('')
}, [ids])
const { TranscodingOptionsInput, format, maxBitRate, originalFormat } =
useTranscodingOptions()
const [createShare] = useCreate(