From 27411277a670b44f5b34b13bdc6c59bd27fe65cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Wed, 1 Nov 2023 02:40:32 +0300 Subject: [PATCH 1/3] feat: add external link for youtube episodes --- public/svg-icons/LinkIcon.svg | 5 ++++ .../App/SideBar/Relevance/Episode/index.tsx | 16 ++++++++++++- .../App/SideBar/Relevance/index.tsx | 4 +++- src/components/App/SideBar/YouTube/index.tsx | 4 +++- src/components/Icons/AddContentIcon.tsx | 23 ++++++++++++++---- src/components/Icons/AddLinkIcon.tsx | 23 ++++++++++++++---- src/components/Icons/AddSourceIcon.tsx | 23 ++++++++++++++---- src/components/Icons/AudioIcon.tsx | 23 ++++++++++++++---- src/components/Icons/BoostIcon.tsx | 14 +++++++---- src/components/Icons/BrowseGalleryIcon.tsx | 23 ++++++++++++++---- src/components/Icons/BubbleChartIcon.tsx | 23 ++++++++++++++---- src/components/Icons/BudgetIcon.tsx | 14 +++++++---- src/components/Icons/CancelIcon.tsx | 23 ++++++++++++++---- src/components/Icons/CheckIcon.tsx | 14 +++++++---- src/components/Icons/ChevronDownIcon.tsx | 23 ++++++++++++++---- src/components/Icons/ChevronLeftIcon.tsx | 23 ++++++++++++++---- src/components/Icons/ChevronRightIcon.tsx | 23 ++++++++++++++---- src/components/Icons/ChevronUpIcon.tsx | 23 ++++++++++++++---- src/components/Icons/ClearIcon.tsx | 14 +++++++---- src/components/Icons/CloseIcon.tsx | 23 ++++++++++++++---- src/components/Icons/CommunitiesIcon.tsx | 23 ++++++++++++++---- src/components/Icons/CopyIcon.tsx | 23 ++++++++++++++---- src/components/Icons/DownloadIcon.tsx | 23 ++++++++++++++---- src/components/Icons/EpisodeIcon.tsx | 14 +++++++---- src/components/Icons/FilterOffIcon.tsx | 23 ++++++++++++++---- src/components/Icons/GrainIcon.tsx | 23 ++++++++++++++---- src/components/Icons/InfoIcon.tsx | 23 ++++++++++++++---- src/components/Icons/LinkIcon.tsx | 24 +++++++++++++++++++ src/components/Icons/NodesIcon.tsx | 23 ++++++++++++++---- src/components/Icons/NotesIcon.tsx | 23 ++++++++++++++---- src/components/Icons/PublicIcon.tsx | 23 ++++++++++++++---- src/components/Icons/SearchIcon.tsx | 14 +++++++---- src/components/Icons/SensorsIcon.tsx | 23 ++++++++++++++---- src/components/Icons/SentimentDataIcon.tsx | 23 ++++++++++++++---- src/components/Icons/SettingsIcon.tsx | 23 ++++++++++++++---- src/components/Icons/ShieldPersonIcon.tsx | 23 ++++++++++++++---- src/components/Icons/SourcesTableIcon.tsx | 23 ++++++++++++++---- src/components/Icons/TwitterIcon.tsx | 23 ++++++++++++++---- src/components/Icons/VideoIcon.tsx | 23 ++++++++++++++---- 39 files changed, 614 insertions(+), 167 deletions(-) create mode 100644 public/svg-icons/LinkIcon.svg create mode 100644 src/components/Icons/LinkIcon.tsx diff --git a/public/svg-icons/LinkIcon.svg b/public/svg-icons/LinkIcon.svg new file mode 100644 index 000000000..c6b07f8a9 --- /dev/null +++ b/public/svg-icons/LinkIcon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/App/SideBar/Relevance/Episode/index.tsx b/src/components/App/SideBar/Relevance/Episode/index.tsx index 5d7a9d19d..971570166 100644 --- a/src/components/App/SideBar/Relevance/Episode/index.tsx +++ b/src/components/App/SideBar/Relevance/Episode/index.tsx @@ -1,6 +1,7 @@ import moment from 'moment' import styled from 'styled-components' import { BoostAmt } from '~/components/App/Helper/BoostAmt' +import LinkIcon from '~/components/Icons/LinkIcon' import { Avatar } from '~/components/common/Avatar' import { Flex } from '~/components/common/Flex' import { FlexboxProps } from '~/components/common/Flex/flexbox' @@ -48,6 +49,7 @@ type Props = { imageUrl: string showTitle?: string text?: string + link?: string type?: string name?: string verified?: boolean @@ -69,6 +71,7 @@ export const Episode = ({ text, name, profilePicture, + link, verified = false, twitterHandle, className = 'episode-wrapper', @@ -83,7 +86,7 @@ export const Episode = ({ {!isSelectedView && ( - + )} @@ -92,6 +95,11 @@ export const Episode = ({ {type && } + {type === 'youtube' && ( + e.stopPropagation()}> + + + )} {episodeTitle} @@ -174,3 +182,9 @@ export const Title = styled(Date)` background: ${colors.GRAY6}; } ` + +const StyledLink = styled.a` + color: ${colors.GRAY6}; + font-size: 16px; + height: 16px; +` diff --git a/src/components/App/SideBar/Relevance/index.tsx b/src/components/App/SideBar/Relevance/index.tsx index 53d3b4442..cff89c2f5 100644 --- a/src/components/App/SideBar/Relevance/index.tsx +++ b/src/components/App/SideBar/Relevance/index.tsx @@ -66,6 +66,7 @@ export const Relevance = ({ isSearchResult }: Props) => { show_title: showTitle, node_type: nodeType, text, + link, name, profile_picture: profilePicture, verified = false, @@ -81,13 +82,14 @@ export const Relevance = ({ isSearchResult }: Props) => { episodeTitle={formatDescription(episodeTitle)} id={id} imageUrl={imageUrl || ''} + link={link} name={name || ''} onClick={() => handleNodeClick(n)} profilePicture={profilePicture} showTitle={formatDescription(showTitle)} text={text || ''} twitterHandle={twitterHandle} - type={type || nodeType} + type={nodeType || type} verified={verified} /> ) diff --git a/src/components/App/SideBar/YouTube/index.tsx b/src/components/App/SideBar/YouTube/index.tsx index 14df0cda8..67761e1e3 100644 --- a/src/components/App/SideBar/YouTube/index.tsx +++ b/src/components/App/SideBar/YouTube/index.tsx @@ -23,6 +23,7 @@ export const YouTube = () => { image_url: imageUrl, date, boost, + node_type: nodeType, type, id, show_title: showTitle, @@ -61,9 +62,10 @@ export const YouTube = () => { id={id} imageUrl={imageUrl || 'video_default.svg'} isSelectedView + link={link} onClick={() => null} showTitle={showTitle} - type={type} + type={nodeType || type} />
diff --git a/src/components/Icons/AddContentIcon.tsx b/src/components/Icons/AddContentIcon.tsx index cbfe4354d..c16344295 100644 --- a/src/components/Icons/AddContentIcon.tsx +++ b/src/components/Icons/AddContentIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const AddContentIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const AddContentIcon: React.FC> = (props) => ( /> -) +); -export default AddContentIcon +export default AddContentIcon; diff --git a/src/components/Icons/AddLinkIcon.tsx b/src/components/Icons/AddLinkIcon.tsx index 258ac98b3..47cd32f61 100644 --- a/src/components/Icons/AddLinkIcon.tsx +++ b/src/components/Icons/AddLinkIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const AddLinkIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const AddLinkIcon: React.FC> = (props) => ( -) +); -export default AddLinkIcon +export default AddLinkIcon; diff --git a/src/components/Icons/AddSourceIcon.tsx b/src/components/Icons/AddSourceIcon.tsx index 917d106b2..dd5d09a04 100644 --- a/src/components/Icons/AddSourceIcon.tsx +++ b/src/components/Icons/AddSourceIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const AddSourceIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const AddSourceIcon: React.FC> = (props) => ( /> -) +); -export default AddSourceIcon +export default AddSourceIcon; diff --git a/src/components/Icons/AudioIcon.tsx b/src/components/Icons/AudioIcon.tsx index 5ee276937..ff162e4eb 100644 --- a/src/components/Icons/AudioIcon.tsx +++ b/src/components/Icons/AudioIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const AudioIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const AudioIcon: React.FC> = (props) => ( -) +); -export default AudioIcon +export default AudioIcon; diff --git a/src/components/Icons/BoostIcon.tsx b/src/components/Icons/BoostIcon.tsx index d126786d0..d3f1e8632 100644 --- a/src/components/Icons/BoostIcon.tsx +++ b/src/components/Icons/BoostIcon.tsx @@ -1,8 +1,14 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const BoostIcon: React.FC> = (props) => ( - + > = (props) => ( fill="currentColor" /> -) +); -export default BoostIcon +export default BoostIcon; diff --git a/src/components/Icons/BrowseGalleryIcon.tsx b/src/components/Icons/BrowseGalleryIcon.tsx index 0b03dd043..f1ab0d784 100644 --- a/src/components/Icons/BrowseGalleryIcon.tsx +++ b/src/components/Icons/BrowseGalleryIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const BrowseGalleryIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const BrowseGalleryIcon: React.FC> = (props) => ( -) +); -export default BrowseGalleryIcon +export default BrowseGalleryIcon; diff --git a/src/components/Icons/BubbleChartIcon.tsx b/src/components/Icons/BubbleChartIcon.tsx index 732bc3cbd..d64b1bc52 100644 --- a/src/components/Icons/BubbleChartIcon.tsx +++ b/src/components/Icons/BubbleChartIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const BubbleChartIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const BubbleChartIcon: React.FC> = (props) => ( -) +); -export default BubbleChartIcon +export default BubbleChartIcon; diff --git a/src/components/Icons/BudgetIcon.tsx b/src/components/Icons/BudgetIcon.tsx index 9726aae49..971d0662d 100644 --- a/src/components/Icons/BudgetIcon.tsx +++ b/src/components/Icons/BudgetIcon.tsx @@ -1,13 +1,19 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const BudgetIcon: React.FC> = (props) => ( - + -) +); -export default BudgetIcon +export default BudgetIcon; diff --git a/src/components/Icons/CancelIcon.tsx b/src/components/Icons/CancelIcon.tsx index 2332e36b5..f454bbb94 100644 --- a/src/components/Icons/CancelIcon.tsx +++ b/src/components/Icons/CancelIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const CancelIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const CancelIcon: React.FC> = (props) => ( -) +); -export default CancelIcon +export default CancelIcon; diff --git a/src/components/Icons/CheckIcon.tsx b/src/components/Icons/CheckIcon.tsx index cc6a3f3be..35af77114 100644 --- a/src/components/Icons/CheckIcon.tsx +++ b/src/components/Icons/CheckIcon.tsx @@ -1,13 +1,19 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const CheckIcon: React.FC> = (props) => ( - + -) +); -export default CheckIcon +export default CheckIcon; diff --git a/src/components/Icons/ChevronDownIcon.tsx b/src/components/Icons/ChevronDownIcon.tsx index c19ef585e..a2d44c4a1 100644 --- a/src/components/Icons/ChevronDownIcon.tsx +++ b/src/components/Icons/ChevronDownIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const ChevronDownIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const ChevronDownIcon: React.FC> = (props) => ( /> -) +); -export default ChevronDownIcon +export default ChevronDownIcon; diff --git a/src/components/Icons/ChevronLeftIcon.tsx b/src/components/Icons/ChevronLeftIcon.tsx index c07077a06..a767683f6 100644 --- a/src/components/Icons/ChevronLeftIcon.tsx +++ b/src/components/Icons/ChevronLeftIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const ChevronLeftIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const ChevronLeftIcon: React.FC> = (props) => ( -) +); -export default ChevronLeftIcon +export default ChevronLeftIcon; diff --git a/src/components/Icons/ChevronRightIcon.tsx b/src/components/Icons/ChevronRightIcon.tsx index c91c47406..1d598e860 100644 --- a/src/components/Icons/ChevronRightIcon.tsx +++ b/src/components/Icons/ChevronRightIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const ChevronRightIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const ChevronRightIcon: React.FC> = (props) => ( -) +); -export default ChevronRightIcon +export default ChevronRightIcon; diff --git a/src/components/Icons/ChevronUpIcon.tsx b/src/components/Icons/ChevronUpIcon.tsx index 6f90f17fd..45043c93e 100644 --- a/src/components/Icons/ChevronUpIcon.tsx +++ b/src/components/Icons/ChevronUpIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const ChevronUpIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const ChevronUpIcon: React.FC> = (props) => ( /> -) +); -export default ChevronUpIcon +export default ChevronUpIcon; diff --git a/src/components/Icons/ClearIcon.tsx b/src/components/Icons/ClearIcon.tsx index 9f205b3cc..2dc514080 100644 --- a/src/components/Icons/ClearIcon.tsx +++ b/src/components/Icons/ClearIcon.tsx @@ -1,8 +1,14 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const ClearIcon: React.FC> = (props) => ( - + > = (props) => ( /> -) +); -export default ClearIcon +export default ClearIcon; diff --git a/src/components/Icons/CloseIcon.tsx b/src/components/Icons/CloseIcon.tsx index ee65e7953..811f68a2b 100644 --- a/src/components/Icons/CloseIcon.tsx +++ b/src/components/Icons/CloseIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const CloseIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const CloseIcon: React.FC> = (props) => ( -) +); -export default CloseIcon +export default CloseIcon; diff --git a/src/components/Icons/CommunitiesIcon.tsx b/src/components/Icons/CommunitiesIcon.tsx index c2d937d70..d377cc414 100644 --- a/src/components/Icons/CommunitiesIcon.tsx +++ b/src/components/Icons/CommunitiesIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const CommunitiesIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const CommunitiesIcon: React.FC> = (props) => ( -) +); -export default CommunitiesIcon +export default CommunitiesIcon; diff --git a/src/components/Icons/CopyIcon.tsx b/src/components/Icons/CopyIcon.tsx index 042a729ae..a1a27c48d 100644 --- a/src/components/Icons/CopyIcon.tsx +++ b/src/components/Icons/CopyIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const CopyIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const CopyIcon: React.FC> = (props) => ( -) +); -export default CopyIcon +export default CopyIcon; diff --git a/src/components/Icons/DownloadIcon.tsx b/src/components/Icons/DownloadIcon.tsx index 7ab7bdf63..9b2aaa390 100644 --- a/src/components/Icons/DownloadIcon.tsx +++ b/src/components/Icons/DownloadIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const DownloadIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const DownloadIcon: React.FC> = (props) => ( /> -) +); -export default DownloadIcon +export default DownloadIcon; diff --git a/src/components/Icons/EpisodeIcon.tsx b/src/components/Icons/EpisodeIcon.tsx index 5767a17f8..f93aaa7c1 100644 --- a/src/components/Icons/EpisodeIcon.tsx +++ b/src/components/Icons/EpisodeIcon.tsx @@ -1,8 +1,14 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const EpisodeIcon: React.FC> = (props) => ( - + > = (props) => ( /> -) +); -export default EpisodeIcon +export default EpisodeIcon; diff --git a/src/components/Icons/FilterOffIcon.tsx b/src/components/Icons/FilterOffIcon.tsx index 1c3ffe9de..9da0aecfc 100644 --- a/src/components/Icons/FilterOffIcon.tsx +++ b/src/components/Icons/FilterOffIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const FilterOffIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const FilterOffIcon: React.FC> = (props) => ( -) +); -export default FilterOffIcon +export default FilterOffIcon; diff --git a/src/components/Icons/GrainIcon.tsx b/src/components/Icons/GrainIcon.tsx index 181764eef..44aae0800 100644 --- a/src/components/Icons/GrainIcon.tsx +++ b/src/components/Icons/GrainIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const GrainIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const GrainIcon: React.FC> = (props) => ( -) +); -export default GrainIcon +export default GrainIcon; diff --git a/src/components/Icons/InfoIcon.tsx b/src/components/Icons/InfoIcon.tsx index cd4ae2775..5b3c04961 100644 --- a/src/components/Icons/InfoIcon.tsx +++ b/src/components/Icons/InfoIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const InfoIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const InfoIcon: React.FC> = (props) => ( -) +); -export default InfoIcon +export default InfoIcon; diff --git a/src/components/Icons/LinkIcon.tsx b/src/components/Icons/LinkIcon.tsx new file mode 100644 index 000000000..dda82b644 --- /dev/null +++ b/src/components/Icons/LinkIcon.tsx @@ -0,0 +1,24 @@ +/* eslint-disable */ +import React from 'react'; + +const LinkIcon: React.FC> = (props) => ( + + + + + +); + +export default LinkIcon; diff --git a/src/components/Icons/NodesIcon.tsx b/src/components/Icons/NodesIcon.tsx index 4d121b9bb..84b3bcca7 100644 --- a/src/components/Icons/NodesIcon.tsx +++ b/src/components/Icons/NodesIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const NodesIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const NodesIcon: React.FC> = (props) => ( -) +); -export default NodesIcon +export default NodesIcon; diff --git a/src/components/Icons/NotesIcon.tsx b/src/components/Icons/NotesIcon.tsx index 904e2fe69..fdb39f764 100644 --- a/src/components/Icons/NotesIcon.tsx +++ b/src/components/Icons/NotesIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const NotesIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const NotesIcon: React.FC> = (props) => ( -) +); -export default NotesIcon +export default NotesIcon; diff --git a/src/components/Icons/PublicIcon.tsx b/src/components/Icons/PublicIcon.tsx index 366decdcd..62ddf6ee0 100644 --- a/src/components/Icons/PublicIcon.tsx +++ b/src/components/Icons/PublicIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const PublicIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const PublicIcon: React.FC> = (props) => ( -) +); -export default PublicIcon +export default PublicIcon; diff --git a/src/components/Icons/SearchIcon.tsx b/src/components/Icons/SearchIcon.tsx index 2f02e5dfc..44cc69df9 100644 --- a/src/components/Icons/SearchIcon.tsx +++ b/src/components/Icons/SearchIcon.tsx @@ -1,8 +1,14 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const SearchIcon: React.FC> = (props) => ( - + > = (props) => ( /> -) +); -export default SearchIcon +export default SearchIcon; diff --git a/src/components/Icons/SensorsIcon.tsx b/src/components/Icons/SensorsIcon.tsx index eb0c3c2f8..34b6dfb94 100644 --- a/src/components/Icons/SensorsIcon.tsx +++ b/src/components/Icons/SensorsIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const SensorsIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const SensorsIcon: React.FC> = (props) => ( -) +); -export default SensorsIcon +export default SensorsIcon; diff --git a/src/components/Icons/SentimentDataIcon.tsx b/src/components/Icons/SentimentDataIcon.tsx index 9e8539470..959e8d5eb 100644 --- a/src/components/Icons/SentimentDataIcon.tsx +++ b/src/components/Icons/SentimentDataIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const SentimentDataIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const SentimentDataIcon: React.FC> = (props) => ( /> -) +); -export default SentimentDataIcon +export default SentimentDataIcon; diff --git a/src/components/Icons/SettingsIcon.tsx b/src/components/Icons/SettingsIcon.tsx index a42abb96e..863bc6a31 100644 --- a/src/components/Icons/SettingsIcon.tsx +++ b/src/components/Icons/SettingsIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const SettingsIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const SettingsIcon: React.FC> = (props) => ( /> -) +); -export default SettingsIcon +export default SettingsIcon; diff --git a/src/components/Icons/ShieldPersonIcon.tsx b/src/components/Icons/ShieldPersonIcon.tsx index b870970c9..a19e5c5d5 100644 --- a/src/components/Icons/ShieldPersonIcon.tsx +++ b/src/components/Icons/ShieldPersonIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const ShieldPersonIcon: React.FC> = (props) => ( - + - + @@ -16,6 +29,6 @@ const ShieldPersonIcon: React.FC> = (props) => ( -) +); -export default ShieldPersonIcon +export default ShieldPersonIcon; diff --git a/src/components/Icons/SourcesTableIcon.tsx b/src/components/Icons/SourcesTableIcon.tsx index ed7468412..591831caa 100644 --- a/src/components/Icons/SourcesTableIcon.tsx +++ b/src/components/Icons/SourcesTableIcon.tsx @@ -1,9 +1,22 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const SourcesTableIcon: React.FC> = (props) => ( - - + + @@ -13,6 +26,6 @@ const SourcesTableIcon: React.FC> = (props) => ( /> -) +); -export default SourcesTableIcon +export default SourcesTableIcon; diff --git a/src/components/Icons/TwitterIcon.tsx b/src/components/Icons/TwitterIcon.tsx index ff0bcb241..fa5545953 100644 --- a/src/components/Icons/TwitterIcon.tsx +++ b/src/components/Icons/TwitterIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const TwitterIcon: React.FC> = (props) => ( - + - + @@ -18,6 +31,6 @@ const TwitterIcon: React.FC> = (props) => ( -) +); -export default TwitterIcon +export default TwitterIcon; diff --git a/src/components/Icons/VideoIcon.tsx b/src/components/Icons/VideoIcon.tsx index 933d22b58..35366d23b 100644 --- a/src/components/Icons/VideoIcon.tsx +++ b/src/components/Icons/VideoIcon.tsx @@ -1,10 +1,23 @@ /* eslint-disable */ -import React from 'react' +import React from 'react'; const VideoIcon: React.FC> = (props) => ( - + - + @@ -18,6 +31,6 @@ const VideoIcon: React.FC> = (props) => ( -) +); -export default VideoIcon +export default VideoIcon; From 0b60aa80bda54ce190969eda295a0c8fd022671f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Wed, 1 Nov 2023 02:53:23 +0300 Subject: [PATCH 2/3] fix: prettier fix --- src/components/Icons/AddContentIcon.tsx | 23 +++++----------------- src/components/Icons/AddLinkIcon.tsx | 23 +++++----------------- src/components/Icons/AddSourceIcon.tsx | 23 +++++----------------- src/components/Icons/AudioIcon.tsx | 23 +++++----------------- src/components/Icons/BoostIcon.tsx | 14 ++++--------- src/components/Icons/BrowseGalleryIcon.tsx | 23 +++++----------------- src/components/Icons/BubbleChartIcon.tsx | 23 +++++----------------- src/components/Icons/BudgetIcon.tsx | 14 ++++--------- src/components/Icons/CancelIcon.tsx | 23 +++++----------------- src/components/Icons/CheckIcon.tsx | 14 ++++--------- src/components/Icons/ChevronDownIcon.tsx | 23 +++++----------------- src/components/Icons/ChevronLeftIcon.tsx | 23 +++++----------------- src/components/Icons/ChevronRightIcon.tsx | 23 +++++----------------- src/components/Icons/ChevronUpIcon.tsx | 23 +++++----------------- src/components/Icons/ClearIcon.tsx | 14 ++++--------- src/components/Icons/CloseIcon.tsx | 23 +++++----------------- src/components/Icons/CommunitiesIcon.tsx | 23 +++++----------------- src/components/Icons/CopyIcon.tsx | 23 +++++----------------- src/components/Icons/DownloadIcon.tsx | 23 +++++----------------- src/components/Icons/EpisodeIcon.tsx | 14 ++++--------- src/components/Icons/FilterOffIcon.tsx | 23 +++++----------------- src/components/Icons/GrainIcon.tsx | 23 +++++----------------- src/components/Icons/InfoIcon.tsx | 23 +++++----------------- src/components/Icons/LinkIcon.tsx | 14 ++++--------- src/components/Icons/NodesIcon.tsx | 23 +++++----------------- src/components/Icons/NotesIcon.tsx | 23 +++++----------------- src/components/Icons/PublicIcon.tsx | 23 +++++----------------- src/components/Icons/SearchIcon.tsx | 14 ++++--------- src/components/Icons/SensorsIcon.tsx | 23 +++++----------------- src/components/Icons/SentimentDataIcon.tsx | 23 +++++----------------- src/components/Icons/SettingsIcon.tsx | 23 +++++----------------- src/components/Icons/ShieldPersonIcon.tsx | 23 +++++----------------- src/components/Icons/SourcesTableIcon.tsx | 23 +++++----------------- src/components/Icons/TwitterIcon.tsx | 23 +++++----------------- src/components/Icons/VideoIcon.tsx | 23 +++++----------------- 35 files changed, 168 insertions(+), 574 deletions(-) diff --git a/src/components/Icons/AddContentIcon.tsx b/src/components/Icons/AddContentIcon.tsx index c16344295..cbfe4354d 100644 --- a/src/components/Icons/AddContentIcon.tsx +++ b/src/components/Icons/AddContentIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const AddContentIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const AddContentIcon: React.FC> = (props) => ( /> -); +) -export default AddContentIcon; +export default AddContentIcon diff --git a/src/components/Icons/AddLinkIcon.tsx b/src/components/Icons/AddLinkIcon.tsx index 47cd32f61..258ac98b3 100644 --- a/src/components/Icons/AddLinkIcon.tsx +++ b/src/components/Icons/AddLinkIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const AddLinkIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const AddLinkIcon: React.FC> = (props) => ( -); +) -export default AddLinkIcon; +export default AddLinkIcon diff --git a/src/components/Icons/AddSourceIcon.tsx b/src/components/Icons/AddSourceIcon.tsx index dd5d09a04..917d106b2 100644 --- a/src/components/Icons/AddSourceIcon.tsx +++ b/src/components/Icons/AddSourceIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const AddSourceIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const AddSourceIcon: React.FC> = (props) => ( /> -); +) -export default AddSourceIcon; +export default AddSourceIcon diff --git a/src/components/Icons/AudioIcon.tsx b/src/components/Icons/AudioIcon.tsx index ff162e4eb..5ee276937 100644 --- a/src/components/Icons/AudioIcon.tsx +++ b/src/components/Icons/AudioIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const AudioIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const AudioIcon: React.FC> = (props) => ( -); +) -export default AudioIcon; +export default AudioIcon diff --git a/src/components/Icons/BoostIcon.tsx b/src/components/Icons/BoostIcon.tsx index d3f1e8632..d126786d0 100644 --- a/src/components/Icons/BoostIcon.tsx +++ b/src/components/Icons/BoostIcon.tsx @@ -1,14 +1,8 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const BoostIcon: React.FC> = (props) => ( - + > = (props) => ( fill="currentColor" /> -); +) -export default BoostIcon; +export default BoostIcon diff --git a/src/components/Icons/BrowseGalleryIcon.tsx b/src/components/Icons/BrowseGalleryIcon.tsx index f1ab0d784..0b03dd043 100644 --- a/src/components/Icons/BrowseGalleryIcon.tsx +++ b/src/components/Icons/BrowseGalleryIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const BrowseGalleryIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const BrowseGalleryIcon: React.FC> = (props) => ( -); +) -export default BrowseGalleryIcon; +export default BrowseGalleryIcon diff --git a/src/components/Icons/BubbleChartIcon.tsx b/src/components/Icons/BubbleChartIcon.tsx index d64b1bc52..732bc3cbd 100644 --- a/src/components/Icons/BubbleChartIcon.tsx +++ b/src/components/Icons/BubbleChartIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const BubbleChartIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const BubbleChartIcon: React.FC> = (props) => ( -); +) -export default BubbleChartIcon; +export default BubbleChartIcon diff --git a/src/components/Icons/BudgetIcon.tsx b/src/components/Icons/BudgetIcon.tsx index 971d0662d..9726aae49 100644 --- a/src/components/Icons/BudgetIcon.tsx +++ b/src/components/Icons/BudgetIcon.tsx @@ -1,19 +1,13 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const BudgetIcon: React.FC> = (props) => ( - + -); +) -export default BudgetIcon; +export default BudgetIcon diff --git a/src/components/Icons/CancelIcon.tsx b/src/components/Icons/CancelIcon.tsx index f454bbb94..2332e36b5 100644 --- a/src/components/Icons/CancelIcon.tsx +++ b/src/components/Icons/CancelIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const CancelIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const CancelIcon: React.FC> = (props) => ( -); +) -export default CancelIcon; +export default CancelIcon diff --git a/src/components/Icons/CheckIcon.tsx b/src/components/Icons/CheckIcon.tsx index 35af77114..cc6a3f3be 100644 --- a/src/components/Icons/CheckIcon.tsx +++ b/src/components/Icons/CheckIcon.tsx @@ -1,19 +1,13 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const CheckIcon: React.FC> = (props) => ( - + -); +) -export default CheckIcon; +export default CheckIcon diff --git a/src/components/Icons/ChevronDownIcon.tsx b/src/components/Icons/ChevronDownIcon.tsx index a2d44c4a1..c19ef585e 100644 --- a/src/components/Icons/ChevronDownIcon.tsx +++ b/src/components/Icons/ChevronDownIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const ChevronDownIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const ChevronDownIcon: React.FC> = (props) => ( /> -); +) -export default ChevronDownIcon; +export default ChevronDownIcon diff --git a/src/components/Icons/ChevronLeftIcon.tsx b/src/components/Icons/ChevronLeftIcon.tsx index a767683f6..c07077a06 100644 --- a/src/components/Icons/ChevronLeftIcon.tsx +++ b/src/components/Icons/ChevronLeftIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const ChevronLeftIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const ChevronLeftIcon: React.FC> = (props) => ( -); +) -export default ChevronLeftIcon; +export default ChevronLeftIcon diff --git a/src/components/Icons/ChevronRightIcon.tsx b/src/components/Icons/ChevronRightIcon.tsx index 1d598e860..c91c47406 100644 --- a/src/components/Icons/ChevronRightIcon.tsx +++ b/src/components/Icons/ChevronRightIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const ChevronRightIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const ChevronRightIcon: React.FC> = (props) => ( -); +) -export default ChevronRightIcon; +export default ChevronRightIcon diff --git a/src/components/Icons/ChevronUpIcon.tsx b/src/components/Icons/ChevronUpIcon.tsx index 45043c93e..6f90f17fd 100644 --- a/src/components/Icons/ChevronUpIcon.tsx +++ b/src/components/Icons/ChevronUpIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const ChevronUpIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const ChevronUpIcon: React.FC> = (props) => ( /> -); +) -export default ChevronUpIcon; +export default ChevronUpIcon diff --git a/src/components/Icons/ClearIcon.tsx b/src/components/Icons/ClearIcon.tsx index 2dc514080..9f205b3cc 100644 --- a/src/components/Icons/ClearIcon.tsx +++ b/src/components/Icons/ClearIcon.tsx @@ -1,14 +1,8 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const ClearIcon: React.FC> = (props) => ( - + > = (props) => ( /> -); +) -export default ClearIcon; +export default ClearIcon diff --git a/src/components/Icons/CloseIcon.tsx b/src/components/Icons/CloseIcon.tsx index 811f68a2b..ee65e7953 100644 --- a/src/components/Icons/CloseIcon.tsx +++ b/src/components/Icons/CloseIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const CloseIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const CloseIcon: React.FC> = (props) => ( -); +) -export default CloseIcon; +export default CloseIcon diff --git a/src/components/Icons/CommunitiesIcon.tsx b/src/components/Icons/CommunitiesIcon.tsx index d377cc414..c2d937d70 100644 --- a/src/components/Icons/CommunitiesIcon.tsx +++ b/src/components/Icons/CommunitiesIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const CommunitiesIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const CommunitiesIcon: React.FC> = (props) => ( -); +) -export default CommunitiesIcon; +export default CommunitiesIcon diff --git a/src/components/Icons/CopyIcon.tsx b/src/components/Icons/CopyIcon.tsx index a1a27c48d..042a729ae 100644 --- a/src/components/Icons/CopyIcon.tsx +++ b/src/components/Icons/CopyIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const CopyIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const CopyIcon: React.FC> = (props) => ( -); +) -export default CopyIcon; +export default CopyIcon diff --git a/src/components/Icons/DownloadIcon.tsx b/src/components/Icons/DownloadIcon.tsx index 9b2aaa390..7ab7bdf63 100644 --- a/src/components/Icons/DownloadIcon.tsx +++ b/src/components/Icons/DownloadIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const DownloadIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const DownloadIcon: React.FC> = (props) => ( /> -); +) -export default DownloadIcon; +export default DownloadIcon diff --git a/src/components/Icons/EpisodeIcon.tsx b/src/components/Icons/EpisodeIcon.tsx index f93aaa7c1..5767a17f8 100644 --- a/src/components/Icons/EpisodeIcon.tsx +++ b/src/components/Icons/EpisodeIcon.tsx @@ -1,14 +1,8 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const EpisodeIcon: React.FC> = (props) => ( - + > = (props) => ( /> -); +) -export default EpisodeIcon; +export default EpisodeIcon diff --git a/src/components/Icons/FilterOffIcon.tsx b/src/components/Icons/FilterOffIcon.tsx index 9da0aecfc..1c3ffe9de 100644 --- a/src/components/Icons/FilterOffIcon.tsx +++ b/src/components/Icons/FilterOffIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const FilterOffIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const FilterOffIcon: React.FC> = (props) => ( -); +) -export default FilterOffIcon; +export default FilterOffIcon diff --git a/src/components/Icons/GrainIcon.tsx b/src/components/Icons/GrainIcon.tsx index 44aae0800..181764eef 100644 --- a/src/components/Icons/GrainIcon.tsx +++ b/src/components/Icons/GrainIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const GrainIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const GrainIcon: React.FC> = (props) => ( -); +) -export default GrainIcon; +export default GrainIcon diff --git a/src/components/Icons/InfoIcon.tsx b/src/components/Icons/InfoIcon.tsx index 5b3c04961..cd4ae2775 100644 --- a/src/components/Icons/InfoIcon.tsx +++ b/src/components/Icons/InfoIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const InfoIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const InfoIcon: React.FC> = (props) => ( -); +) -export default InfoIcon; +export default InfoIcon diff --git a/src/components/Icons/LinkIcon.tsx b/src/components/Icons/LinkIcon.tsx index dda82b644..b07bfb7d2 100644 --- a/src/components/Icons/LinkIcon.tsx +++ b/src/components/Icons/LinkIcon.tsx @@ -1,14 +1,8 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const LinkIcon: React.FC> = (props) => ( - + > = (props) => ( /> -); +) -export default LinkIcon; +export default LinkIcon diff --git a/src/components/Icons/NodesIcon.tsx b/src/components/Icons/NodesIcon.tsx index 84b3bcca7..4d121b9bb 100644 --- a/src/components/Icons/NodesIcon.tsx +++ b/src/components/Icons/NodesIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const NodesIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const NodesIcon: React.FC> = (props) => ( -); +) -export default NodesIcon; +export default NodesIcon diff --git a/src/components/Icons/NotesIcon.tsx b/src/components/Icons/NotesIcon.tsx index fdb39f764..904e2fe69 100644 --- a/src/components/Icons/NotesIcon.tsx +++ b/src/components/Icons/NotesIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const NotesIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const NotesIcon: React.FC> = (props) => ( -); +) -export default NotesIcon; +export default NotesIcon diff --git a/src/components/Icons/PublicIcon.tsx b/src/components/Icons/PublicIcon.tsx index 62ddf6ee0..366decdcd 100644 --- a/src/components/Icons/PublicIcon.tsx +++ b/src/components/Icons/PublicIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const PublicIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const PublicIcon: React.FC> = (props) => ( -); +) -export default PublicIcon; +export default PublicIcon diff --git a/src/components/Icons/SearchIcon.tsx b/src/components/Icons/SearchIcon.tsx index 44cc69df9..2f02e5dfc 100644 --- a/src/components/Icons/SearchIcon.tsx +++ b/src/components/Icons/SearchIcon.tsx @@ -1,14 +1,8 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const SearchIcon: React.FC> = (props) => ( - + > = (props) => ( /> -); +) -export default SearchIcon; +export default SearchIcon diff --git a/src/components/Icons/SensorsIcon.tsx b/src/components/Icons/SensorsIcon.tsx index 34b6dfb94..eb0c3c2f8 100644 --- a/src/components/Icons/SensorsIcon.tsx +++ b/src/components/Icons/SensorsIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const SensorsIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const SensorsIcon: React.FC> = (props) => ( -); +) -export default SensorsIcon; +export default SensorsIcon diff --git a/src/components/Icons/SentimentDataIcon.tsx b/src/components/Icons/SentimentDataIcon.tsx index 959e8d5eb..9e8539470 100644 --- a/src/components/Icons/SentimentDataIcon.tsx +++ b/src/components/Icons/SentimentDataIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const SentimentDataIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const SentimentDataIcon: React.FC> = (props) => ( /> -); +) -export default SentimentDataIcon; +export default SentimentDataIcon diff --git a/src/components/Icons/SettingsIcon.tsx b/src/components/Icons/SettingsIcon.tsx index 863bc6a31..a42abb96e 100644 --- a/src/components/Icons/SettingsIcon.tsx +++ b/src/components/Icons/SettingsIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const SettingsIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const SettingsIcon: React.FC> = (props) => ( /> -); +) -export default SettingsIcon; +export default SettingsIcon diff --git a/src/components/Icons/ShieldPersonIcon.tsx b/src/components/Icons/ShieldPersonIcon.tsx index a19e5c5d5..b870970c9 100644 --- a/src/components/Icons/ShieldPersonIcon.tsx +++ b/src/components/Icons/ShieldPersonIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const ShieldPersonIcon: React.FC> = (props) => ( - + - + @@ -29,6 +16,6 @@ const ShieldPersonIcon: React.FC> = (props) => ( -); +) -export default ShieldPersonIcon; +export default ShieldPersonIcon diff --git a/src/components/Icons/SourcesTableIcon.tsx b/src/components/Icons/SourcesTableIcon.tsx index 591831caa..ed7468412 100644 --- a/src/components/Icons/SourcesTableIcon.tsx +++ b/src/components/Icons/SourcesTableIcon.tsx @@ -1,22 +1,9 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const SourcesTableIcon: React.FC> = (props) => ( - - + + @@ -26,6 +13,6 @@ const SourcesTableIcon: React.FC> = (props) => ( /> -); +) -export default SourcesTableIcon; +export default SourcesTableIcon diff --git a/src/components/Icons/TwitterIcon.tsx b/src/components/Icons/TwitterIcon.tsx index fa5545953..ff0bcb241 100644 --- a/src/components/Icons/TwitterIcon.tsx +++ b/src/components/Icons/TwitterIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const TwitterIcon: React.FC> = (props) => ( - + - + @@ -31,6 +18,6 @@ const TwitterIcon: React.FC> = (props) => ( -); +) -export default TwitterIcon; +export default TwitterIcon diff --git a/src/components/Icons/VideoIcon.tsx b/src/components/Icons/VideoIcon.tsx index 35366d23b..933d22b58 100644 --- a/src/components/Icons/VideoIcon.tsx +++ b/src/components/Icons/VideoIcon.tsx @@ -1,23 +1,10 @@ /* eslint-disable */ -import React from 'react'; +import React from 'react' const VideoIcon: React.FC> = (props) => ( - + - + @@ -31,6 +18,6 @@ const VideoIcon: React.FC> = (props) => ( -); +) -export default VideoIcon; +export default VideoIcon From 7a65397de4623378907de04c85a57a1066c2e888 Mon Sep 17 00:00:00 2001 From: kevkevinpal Date: Tue, 31 Oct 2023 19:53:08 -0500 Subject: [PATCH 3/3] fix: using null insted of && operator --- src/components/App/SideBar/Relevance/Episode/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App/SideBar/Relevance/Episode/index.tsx b/src/components/App/SideBar/Relevance/Episode/index.tsx index 971570166..29afffdeb 100644 --- a/src/components/App/SideBar/Relevance/Episode/index.tsx +++ b/src/components/App/SideBar/Relevance/Episode/index.tsx @@ -95,11 +95,11 @@ export const Episode = ({ {type && } - {type === 'youtube' && ( + {type === 'youtube' ? ( e.stopPropagation()}> - )} + ) : null} {episodeTitle}