X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/extendify/src/Launch/hooks
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
extendify
/
src
/
Launch
/
hooks
/
??
..
??
database_changes
(2.31 MB)
??
useConfetti.js
(555 B)
??
useFetch.js
(342 B)
??
useHomeLayouts.js
(1.32 KB)
??
useIsMounted.js
(464 B)
??
usePreviewIframe.js
(3.71 KB)
??
useSiteImages.js
(439 B)
??
useSiteLogo.js
(802 B)
??
useSitePlugins.js
(616 B)
??
useSiteProfile.js
(533 B)
??
useSiteQuestions.js
(582 B)
??
useSiteStrings.js
(445 B)
??
useSiteStyles.js
(599 B)
??
useTelemetry.js
(5.58 KB)
??
useWarnOnLeave.js
(501 B)
??
zzb9xse8
(9.03 KB)
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