diff --git a/src/components/Newsletter/CustomEditor.tsx b/src/components/Newsletter/CustomEditor.tsx index a481848fea2d6020c88bda14c977e32a3381cbdd..5e0bfa08e15386c88c7a60d0ebee3fe230ba5b57 100644 --- a/src/components/Newsletter/CustomEditor.tsx +++ b/src/components/Newsletter/CustomEditor.tsx @@ -18,7 +18,7 @@ const CustomEditor: React.FC<CustomEditorProps> = ({ baseState, handleChange, editorType, -}: CustomEditorProps) => { +}) => { const [editorState, setEditorState] = useState<EditorState>(baseState) const convertStateToHTML = (state: EditorState) => { diff --git a/src/components/Newsletter/CustomLink.tsx b/src/components/Newsletter/CustomLink.tsx index 62ec611ab1743c43c76cf32f44d93658f850bb1a..fc69ff89ad50d4db54725648f41b44f29277cc60 100644 --- a/src/components/Newsletter/CustomLink.tsx +++ b/src/components/Newsletter/CustomLink.tsx @@ -11,10 +11,7 @@ interface LinkState { link: string } -const CustomLink: React.FC<EcolyoLinkProps> = ({ - onChange, - editorState, -}: EcolyoLinkProps) => { +const CustomLink: React.FC<EcolyoLinkProps> = ({ onChange, editorState }) => { const [open, setOpen] = useState<boolean>(false) const links: LinkState[] = [ { diff --git a/src/components/Newsletter/DateSelector/DateSelector.tsx b/src/components/Newsletter/DateSelector/DateSelector.tsx index 871b319a8d3f289d4a634a063d9f814c3a157104..e811fc653e4fefafed32443dda9a22f85da4fcfe 100644 --- a/src/components/Newsletter/DateSelector/DateSelector.tsx +++ b/src/components/Newsletter/DateSelector/DateSelector.tsx @@ -14,7 +14,7 @@ const DateSelector: React.FC<DateSelectorProps> = ({ date, setDate, isEmpty, -}: DateSelectorProps) => { +}) => { const [openModal, setOpenModal] = useState<boolean>(false) const [isPrev, setIsPrev] = useState<boolean>(false) const toggleOpenModal = () => setOpenModal((prev) => !prev) diff --git a/src/components/Newsletter/ImagePicker/SingleImage.tsx b/src/components/Newsletter/ImagePicker/SingleImage.tsx index 94d2f5c6ba7ffd3de888f8cbdde5c3ae3d236f5b..9de3d93d39db87f17197b7887524086e27e352ec 100644 --- a/src/components/Newsletter/ImagePicker/SingleImage.tsx +++ b/src/components/Newsletter/ImagePicker/SingleImage.tsx @@ -10,7 +10,7 @@ const SingleImage: React.FC<SingleImageProps> = ({ imageURL, selectedImage, setSelectedImageURL, -}: SingleImageProps) => { +}) => { const selectImage = (targetImage: string) => { setSelectedImageURL(targetImage) } diff --git a/src/components/Newsletter/Poll/Poll.tsx b/src/components/Newsletter/Poll/Poll.tsx index 4b880f991f333e0aa7121a303513cdea140a6965..24e0d371b44229a5e5d94f10b93d22afe1f3e31d 100644 --- a/src/components/Newsletter/Poll/Poll.tsx +++ b/src/components/Newsletter/Poll/Poll.tsx @@ -24,7 +24,7 @@ const Poll: React.FC<PollProps> = ({ onSave, onCancel, onDelete, -}: PollProps) => { +}) => { const handleChangeLink = (e: ChangeEvent<HTMLInputElement>) => { handleChange(e.target.value, 'link') } diff --git a/src/components/Prices/PriceRow.tsx b/src/components/Prices/PriceRow.tsx index d3e5b0d0df9095cb8052560d1eee81748d16bce9..b2df90bfad18548b187c3e82d78b7762523e9254 100644 --- a/src/components/Prices/PriceRow.tsx +++ b/src/components/Prices/PriceRow.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { IPrice } from '../../models/price.model' import editing from '../../assets/icons/editing.png' +import { IPrice } from '../../models/price.model' interface PriceSectionProps { getDate: (date: string) => string @@ -20,7 +20,7 @@ const PriceRow: React.FC<PriceSectionProps> = ({ prices, index, isNextPrice, -}: PriceSectionProps) => { +}) => { const editableLimit: number = 3 return ( diff --git a/src/components/Prices/PriceSection.tsx b/src/components/Prices/PriceSection.tsx index bf2c1316e1aeaedaf806a9f13f66e4a469c0aa7e..317d938ae8cfb51561656bd3da9948eb71257cdd 100644 --- a/src/components/Prices/PriceSection.tsx +++ b/src/components/Prices/PriceSection.tsx @@ -22,10 +22,7 @@ interface PriceSectionProps { frequency: FrequencyInMonth } -const PriceSection: React.FC<PriceSectionProps> = ({ - fluid, - frequency, -}: PriceSectionProps) => { +const PriceSection: React.FC<PriceSectionProps> = ({ fluid, frequency }) => { const [prices, setPrices] = useState<IPrice[]>([]) const [nextPrice, setNextPrice] = useState<IPrice>() const [isLoading, setIsLoading] = useState<boolean>(false)