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

@@ -5,9 +5,15 @@ import cn from 'classnames';
import { ChatSocialMessage as ChatMessage } from '../../../interfaces/chat-social-message.model';
import styles from './ChatSocialMessage.module.scss';
const FollowIcon = dynamic(() => import('./follow.svg'));
const LikeIcon = dynamic(() => import('./like.svg'));
const RepostIcon = dynamic(() => import('./repost.svg'));
const FollowIcon = dynamic(() => import('./follow.svg'), {
ssr: false,
});
const LikeIcon = dynamic(() => import('./like.svg'), {
ssr: false,
});
const RepostIcon = dynamic(() => import('./repost.svg'), {
ssr: false,
});
export interface ChatSocialMessageProps {
message: ChatMessage;