Fix some React lifecycle and rendering errors that exist in build

This commit is contained in:
Gabe Kangas
2023-01-10 16:39:12 -08:00
parent e9d43492d0
commit d8a5380b7f
16 changed files with 85 additions and 102 deletions

View File

@@ -1,4 +1,4 @@
import { Tag } from 'antd';
import { Tag, Tooltip } from 'antd';
import { FC } from 'react';
import cn from 'classnames';
import dynamic from 'next/dynamic';
@@ -7,14 +7,13 @@ import styles from './Header.module.scss';
// Lazy loaded components
const UserDropdown = dynamic(() =>
import('../../common/UserDropdown/UserDropdown').then(mod => mod.UserDropdown),
const UserDropdown = dynamic(
() => import('../../common/UserDropdown/UserDropdown').then(mod => mod.UserDropdown),
{
ssr: false,
},
);
const Tooltip = dynamic(() => import('antd').then(mod => mod.Tooltip), {
ssr: false,
});
export type HeaderComponentProps = {
name: string;
chatAvailable: boolean;