mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-10-01 21:01:58 +02:00
Rename Icon->AttachmentIcon
This commit is contained in:
parent
6f07944442
commit
d44ee2bbf6
3 changed files with 7 additions and 12 deletions
|
@ -6,7 +6,7 @@ import fileVideo from "../img/file-video.svg";
|
||||||
import fileAudio from "../img/file-audio.svg";
|
import fileAudio from "../img/file-audio.svg";
|
||||||
import fileApp from "../img/file-app.svg";
|
import fileApp from "../img/file-app.svg";
|
||||||
|
|
||||||
const Icon = (props) => {
|
const AttachmentIcon = (props) => {
|
||||||
const type = props.type;
|
const type = props.type;
|
||||||
let imageFile;
|
let imageFile;
|
||||||
if (!type) {
|
if (!type) {
|
||||||
|
@ -35,4 +35,4 @@ const Icon = (props) => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Icon;
|
export default AttachmentIcon;
|
|
@ -33,17 +33,12 @@ import Box from "@mui/material/Box";
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
import subscriptionManager from "../app/SubscriptionManager";
|
import subscriptionManager from "../app/SubscriptionManager";
|
||||||
import InfiniteScroll from "react-infinite-scroll-component";
|
import InfiniteScroll from "react-infinite-scroll-component";
|
||||||
import fileApp from "../img/file-app.svg";
|
|
||||||
import fileAudio from "../img/file-audio.svg";
|
|
||||||
import fileDocument from "../img/file-document.svg";
|
|
||||||
import fileImage from "../img/file-image.svg";
|
|
||||||
import fileVideo from "../img/file-video.svg";
|
|
||||||
import priority1 from "../img/priority-1.svg";
|
import priority1 from "../img/priority-1.svg";
|
||||||
import priority2 from "../img/priority-2.svg";
|
import priority2 from "../img/priority-2.svg";
|
||||||
import priority4 from "../img/priority-4.svg";
|
import priority4 from "../img/priority-4.svg";
|
||||||
import priority5 from "../img/priority-5.svg";
|
import priority5 from "../img/priority-5.svg";
|
||||||
import logoOutline from "../img/ntfy-outline.svg";
|
import logoOutline from "../img/ntfy-outline.svg";
|
||||||
import Icon from "./Icon";
|
import AttachmentIcon from "./AttachmentIcon";
|
||||||
|
|
||||||
const Notifications = (props) => {
|
const Notifications = (props) => {
|
||||||
if (props.mode === "all") {
|
if (props.mode === "all") {
|
||||||
|
@ -240,7 +235,7 @@ const Attachment = (props) => {
|
||||||
padding: 1,
|
padding: 1,
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
}}>
|
}}>
|
||||||
<Icon type={attachment.type}/>
|
<AttachmentIcon type={attachment.type}/>
|
||||||
<Typography variant="body2" sx={{ marginLeft: 1, textAlign: 'left', color: 'text.primary' }}>
|
<Typography variant="body2" sx={{ marginLeft: 1, textAlign: 'left', color: 'text.primary' }}>
|
||||||
<b>{attachment.name}</b>
|
<b>{attachment.name}</b>
|
||||||
{maybeInfoText}
|
{maybeInfoText}
|
||||||
|
@ -269,7 +264,7 @@ const Attachment = (props) => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon type={attachment.type}/>
|
<AttachmentIcon type={attachment.type}/>
|
||||||
<Typography variant="body2" sx={{ marginLeft: 1, textAlign: 'left', color: 'text.primary' }}>
|
<Typography variant="body2" sx={{ marginLeft: 1, textAlign: 'left', color: 'text.primary' }}>
|
||||||
<b>{attachment.name}</b>
|
<b>{attachment.name}</b>
|
||||||
{maybeInfoText}
|
{maybeInfoText}
|
||||||
|
|
|
@ -20,7 +20,7 @@ import {Close} from "@mui/icons-material";
|
||||||
import MenuItem from "@mui/material/MenuItem";
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
import {basicAuth, formatBytes, shortUrl, splitTopicUrl, validTopicUrl} from "../app/utils";
|
import {basicAuth, formatBytes, shortUrl, splitTopicUrl, validTopicUrl} from "../app/utils";
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import Icon from "./Icon";
|
import AttachmentIcon from "./AttachmentIcon";
|
||||||
import DialogFooter from "./DialogFooter";
|
import DialogFooter from "./DialogFooter";
|
||||||
import api from "../app/Api";
|
import api from "../app/Api";
|
||||||
import userManager from "../app/UserManager";
|
import userManager from "../app/UserManager";
|
||||||
|
@ -483,7 +483,7 @@ const AttachmentBox = (props) => {
|
||||||
padding: 0.5,
|
padding: 0.5,
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
}}>
|
}}>
|
||||||
<Icon type={file.type}/>
|
<AttachmentIcon type={file.type}/>
|
||||||
<Box sx={{ marginLeft: 1, textAlign: 'left' }}>
|
<Box sx={{ marginLeft: 1, textAlign: 'left' }}>
|
||||||
<ExpandingTextField
|
<ExpandingTextField
|
||||||
minWidth={140}
|
minWidth={140}
|
||||||
|
|
Loading…
Reference in a new issue