diff --git a/src/views/components/calendar/CalendarCourseCellColorPicker/HexColorEditor.tsx b/src/views/components/calendar/CalendarCourseCellColorPicker/HexColorEditor.tsx index e941746a..f62df2fb 100644 --- a/src/views/components/calendar/CalendarCourseCellColorPicker/HexColorEditor.tsx +++ b/src/views/components/calendar/CalendarCourseCellColorPicker/HexColorEditor.tsx @@ -27,12 +27,10 @@ export default function HexColorEditor({ hexCode, setHexCode }: HexColorEditorPr const tagColor = pickFontColor(previewColor.slice(1) as `#${string}`); const [localHexCode, setLocalHexCode] = React.useState(hexCode); - const debouncedSetHexCode = useDebounce((value: string) => setHexCode(value), 500); + const debouncedSetHexCode = useDebounce(setHexCode, 500); React.useEffect(() => { - if (hexCode !== localHexCode) { - setLocalHexCode(hexCode); - } + setLocalHexCode(hexCode); }, [hexCode]); React.useEffect(() => { diff --git a/src/views/components/calendar/DiningAppPromo.tsx b/src/views/components/calendar/DiningAppPromo.tsx index 67e76eed..2d4cc139 100644 --- a/src/views/components/calendar/DiningAppPromo.tsx +++ b/src/views/components/calendar/DiningAppPromo.tsx @@ -1,5 +1,5 @@ import { AppStoreLogo, ForkKnife, X as CloseIcon } from '@phosphor-icons/react'; -import { UT_DINING_APP_STORE_URL, UT_DINING_GOOGLE_PLAY_URL } from '@shared/util/appUrls'; +import { UT_DINING_APP_STORE_URL } from '@shared/util/appUrls'; import { Button } from '@views/components/common/Button'; import Text from '@views/components/common/Text/Text'; import React from 'react'; diff --git a/src/views/components/common/WhatsNewPopup.tsx b/src/views/components/common/WhatsNewPopup.tsx index d8a33387..d96d5678 100644 --- a/src/views/components/common/WhatsNewPopup.tsx +++ b/src/views/components/common/WhatsNewPopup.tsx @@ -15,7 +15,7 @@ import React, { useEffect, useState } from 'react'; */ const WHATSNEW_POPUP_VERSION = 2; -const WHATSNEW_VIDEO_URL = 'https://cdn.longhorns.dev/whats-new-v2.1.2.mp4'; +// const WHATSNEW_VIDEO_URL = 'https://cdn.longhorns.dev/whats-new-v2.1.2.mp4'; type Feature = { id: string; @@ -60,7 +60,7 @@ const NEW_FEATURES = [ * @returns A JSX of WhatsNewPopupContent component. */ export default function WhatsNewPopupContent(): JSX.Element { - const [videoError, setVideoError] = useState(false); + const [videoError, _setVideoError] = useState(false); return (