@ -2,25 +2,25 @@ import { workspacePublicDataState } from '@/auth/states/workspacePublicDataState
|
|||||||
import { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo';
|
import { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo';
|
||||||
import { Helmet } from 'react-helmet-async';
|
import { Helmet } from 'react-helmet-async';
|
||||||
import { useRecoilValue } from 'recoil';
|
import { useRecoilValue } from 'recoil';
|
||||||
import { REACT_APP_SERVER_BASE_URL } from '~/config';
|
|
||||||
import { getImageAbsoluteURI } from 'twenty-shared/utils';
|
import { getImageAbsoluteURI } from 'twenty-shared/utils';
|
||||||
|
import { REACT_APP_SERVER_BASE_URL } from '~/config';
|
||||||
|
|
||||||
export const PageFavicon = () => {
|
export const PageFavicon = () => {
|
||||||
const workspacePublicData = useRecoilValue(workspacePublicDataState);
|
const workspacePublicData = useRecoilValue(workspacePublicDataState);
|
||||||
return (
|
return (
|
||||||
<Helmet>
|
<Helmet>
|
||||||
{workspacePublicData?.logo && (
|
<link
|
||||||
<link
|
rel="icon"
|
||||||
rel="icon"
|
type="image/x-icon"
|
||||||
type="image/x-icon"
|
href={
|
||||||
href={
|
workspacePublicData?.logo
|
||||||
getImageAbsoluteURI({
|
? (getImageAbsoluteURI({
|
||||||
imageUrl: workspacePublicData.logo,
|
imageUrl: workspacePublicData.logo,
|
||||||
baseUrl: REACT_APP_SERVER_BASE_URL,
|
baseUrl: REACT_APP_SERVER_BASE_URL,
|
||||||
}) ?? DEFAULT_WORKSPACE_LOGO
|
}) ?? DEFAULT_WORKSPACE_LOGO)
|
||||||
}
|
: DEFAULT_WORKSPACE_LOGO
|
||||||
/>
|
}
|
||||||
)}
|
/>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user