Browse Source

update closing button on panel

imwald
Silberengel 5 months ago
parent
commit
50bc7996d0
  1. 4
      src/pages/secondary/HomePage/index.tsx

4
src/pages/secondary/HomePage/index.tsx

@ -15,7 +15,7 @@ const HomePage = forwardRef(({ index }: { index?: number }, ref) => { @@ -15,7 +15,7 @@ const HomePage = forwardRef(({ index }: { index?: number }, ref) => {
const { t } = useTranslation()
const { navigate } = usePrimaryPage()
const { navigateToRelay } = useSmartRelayNavigation()
const { updateHideRecommendedRelaysPanel } = useUserPreferences()
const { updateShowRecommendedRelaysPanel } = useUserPreferences()
const [recommendedRelayInfos, setRecommendedRelayInfos] = useState<TRelayInfo[]>([])
useEffect(() => {
@ -55,7 +55,7 @@ const HomePage = forwardRef(({ index }: { index?: number }, ref) => { @@ -55,7 +55,7 @@ const HomePage = forwardRef(({ index }: { index?: number }, ref) => {
variant="ghost"
size="icon"
className="h-6 w-6"
onClick={() => updateHideRecommendedRelaysPanel(true)}
onClick={() => updateShowRecommendedRelaysPanel(false)}
title={t('Close')}
>
<X className="h-4 w-4" />

Loading…
Cancel
Save