Unverified Commit 4e023e25 authored by boojack's avatar boojack Committed by GitHub

chore: add file type to audio (#1492)

* chore: add file type to audio

* chore: update
parent 3eac19d2
...@@ -19,7 +19,9 @@ const MemoResource: React.FC<Props> = (props: Props) => { ...@@ -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>
</> </>
) : ( ) : (
<> <>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment