From 3548131f75f3a8f8d822eaae37f48e882c924d72 Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Thu, 24 Aug 2023 18:45:10 +0300 Subject: [PATCH] speaker icon --- web/src/components/MultiSelect.jsx | 4 ++-- web/src/icons/Audio.jsx | 19 ++----------------- web/src/icons/Speaker.jsx | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 19 deletions(-) create mode 100644 web/src/icons/Speaker.jsx diff --git a/web/src/components/MultiSelect.jsx b/web/src/components/MultiSelect.jsx index c4ef22082..a04fc7778 100644 --- a/web/src/components/MultiSelect.jsx +++ b/web/src/components/MultiSelect.jsx @@ -5,7 +5,7 @@ import { ArrowDropdown } from '../icons/ArrowDropdown'; import Heading from './Heading'; import Button from './Button'; import CameraIcon from '../icons/Camera'; -import { AudioIcon } from '../icons/Audio'; +import SpeakerIcon from '../icons/Speaker'; import useSWR from 'swr'; export default function MultiSelect({ className, title, options, selection, onToggle, onShowAll, onSelectSingle }) { @@ -61,7 +61,7 @@ export default function MultiSelect({ className, title, options, selection, onTo className="max-h-[35px] mx-2" onClick={() => onSelectSingle(item)} > - { (title === "Labels" && config.audio.listen.includes(item)) ? ( ) : ( ) } + { (title === "Labels" && config.audio.listen.includes(item)) ? ( ) : ( ) } diff --git a/web/src/icons/Audio.jsx b/web/src/icons/Audio.jsx index 4ddc2a622..4e178ccf0 100644 --- a/web/src/icons/Audio.jsx +++ b/web/src/icons/Audio.jsx @@ -1,7 +1,7 @@ import { h } from 'preact'; import { memo } from 'preact/compat'; -export function Snapshot({ className = 'h-6 w-6', stroke = 'currentColor', onClick = () => {} }) { +export function Audio({ className = 'h-6 w-6', stroke = 'currentColor', onClick = () => {} }) { return ( {}, -}) { - return ( - - - - ); -} -export default memo(Snapshot); +export default memo(Audio); diff --git a/web/src/icons/Speaker.jsx b/web/src/icons/Speaker.jsx new file mode 100644 index 000000000..e775e8365 --- /dev/null +++ b/web/src/icons/Speaker.jsx @@ -0,0 +1,20 @@ +import { h } from 'preact'; +import { memo } from 'preact/compat'; + + +export function Speaker({ + className = 'h-7 w-7', + stroke = 'currentColor', + onClick = () => {}, +}) { + return ( + + + + ); +} +export default memo(Speaker);