chore: add file type to audio (#1492)
* chore: add file type to audio * chore: update
This commit is contained in:
parent
3eac19d258
commit
4e023e2500
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,9 @@ const MemoResource: React.FC<Props> = (props: Props) => {
|
||||||
<div className={`w-auto flex flex-row justify-start items-center hover:opacity-80 ${className}`}>
|
<div className={`w-auto flex flex-row justify-start items-center hover:opacity-80 ${className}`}>
|
||||||
{resource.type.startsWith("audio") ? (
|
{resource.type.startsWith("audio") ? (
|
||||||
<>
|
<>
|
||||||
<audio className="h-8" src={resourceUrl} controls></audio>
|
<audio controls>
|
||||||
|
<source src={resourceUrl} type={resource.type} />
|
||||||
|
</audio>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue