mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Update: Changed icon pack to Boxicons
This commit is contained in:
@@ -4,7 +4,7 @@ import IconButton from '../../../ui/IconButton';
|
||||
import { Attachment } from "revolt.js/dist/api/objects";
|
||||
import { determineFileSize } from '../../../../lib/fileSize';
|
||||
import { AppContext } from '../../../../context/revoltjs/RevoltClient';
|
||||
import { Download, ExternalLink, File, Headphones, Video } from '@styled-icons/feather';
|
||||
import { Download, LinkExternal, File, Headphone, Video } from '@styled-icons/boxicons-regular';
|
||||
|
||||
interface Props {
|
||||
attachment: Attachment;
|
||||
@@ -30,7 +30,7 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||
</div>
|
||||
<a href={open_url} target="_blank">
|
||||
<IconButton>
|
||||
<ExternalLink size={24} />
|
||||
<LinkExternal size={24} />
|
||||
</IconButton>
|
||||
</a>
|
||||
<a href={download_url} download target="_blank">
|
||||
@@ -43,14 +43,14 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||
case 'Audio':
|
||||
return (
|
||||
<div className={styles.actions}>
|
||||
<Headphones size={24} strokeWidth={1.5} />
|
||||
<Headphone size={24} />
|
||||
<div className={styles.info}>
|
||||
<span className={styles.filename}>{filename}</span>
|
||||
<span className={styles.filesize}>{filesize}</span>
|
||||
</div>
|
||||
<a href={download_url} download target="_blank">
|
||||
<IconButton>
|
||||
<Download size={24} strokeWidth={1.5} />
|
||||
<Download size={24} />
|
||||
</IconButton>
|
||||
</a>
|
||||
</div>
|
||||
@@ -58,14 +58,14 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||
case 'Video':
|
||||
return (
|
||||
<div className={styles.actions}>
|
||||
<Video size={24} strokeWidth={1.5} />
|
||||
<Video size={24} />
|
||||
<div className={styles.info}>
|
||||
<span className={styles.filename}>{filename}</span>
|
||||
<span className={styles.filesize}>{metadata.width + 'x' + metadata.height} ({filesize})</span>
|
||||
</div>
|
||||
<a href={download_url} download target="_blank">
|
||||
<IconButton>
|
||||
<Download size={24} strokeWidth={1.5}/>
|
||||
<Download size={24} />
|
||||
</IconButton>
|
||||
</a>
|
||||
</div>
|
||||
@@ -73,14 +73,14 @@ export default function AttachmentActions({ attachment }: Props) {
|
||||
default:
|
||||
return (
|
||||
<div className={styles.actions}>
|
||||
<File size={24} strokeWidth={1.5} />
|
||||
<File size={24} />
|
||||
<div className={styles.info}>
|
||||
<span className={styles.filename}>{filename}</span>
|
||||
<span className={styles.filesize}>{filesize}</span>
|
||||
</div>
|
||||
<a href={download_url} download target="_blank">
|
||||
<IconButton>
|
||||
<Download size={24} strokeWidth={1.5} />
|
||||
<Download size={24} />
|
||||
</IconButton>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user