X7ROOT File Manager
Current Path:
/home/okeydcqc/.trash/wp-content/plugins/extendify/src/Launch/hooks
home
/
okeydcqc
/
.trash
/
wp-content
/
plugins
/
extendify
/
src
/
Launch
/
hooks
/
ðŸ“
..
📄
useConfetti.js
(555 B)
📄
useFetch.js
(342 B)
📄
useGoals.js
(623 B)
📄
useHomeLayouts.js
(1.11 KB)
📄
useIsMounted.js
(464 B)
📄
usePreviewIframe.js
(3.71 KB)
📄
useSiteImages.js
(439 B)
📄
useSiteLogo.js
(802 B)
📄
useSiteProfile.js
(533 B)
📄
useSiteStrings.js
(445 B)
📄
useSiteStyles.js
(599 B)
📄
useTelemetry.js
(3.94 KB)
📄
useWarnOnLeave.js
(501 B)
Editing: useSiteLogo.js
import { resizeImage } from '@shared/utils/resize-image'; import useSWRImmutable from 'swr/immutable'; import { getSiteLogo } from '@launch/api/DataApi'; import { useSiteProfile } from '@launch/hooks/useSiteProfile'; export const useSiteLogo = () => { const { siteProfile, loading: profileLoading } = useSiteProfile(); const { data, error } = useSWRImmutable( profileLoading || !siteProfile ? null : { key: 'site-logo', logoObjectName: siteProfile?.logoObjectName, }, async ({ logoObjectName }) => { const rawLogoUrl = await getSiteLogo(logoObjectName); return await resizeImage(rawLogoUrl, { size: { width: 256, height: 256 }, mimeType: 'image/webp', }); }, ); return { logoUrl: data, error, loading: profileLoading || (!data && !error), }; };
Upload File
Create Folder