style: type sync and comments

pull/56/head
moonrailgun 3 years ago
parent c2ba44186f
commit 21c3eb67ad

@ -14,6 +14,9 @@ const Root = styled.div`
}
`;
/**
*
*/
export const TopicComments: React.FC<{
comments: GroupTopicComment[];
}> = React.memo((props) => {

@ -58,11 +58,11 @@ const GroupTopicPanelRender: React.FC = React.memo(() => {
}, [fetch]);
useGlobalSocketEvent('plugin:com.msgbyte.topic.create', () => {
fetch();
fetch(); // not good, 待优化
});
useGlobalSocketEvent('plugin:com.msgbyte.topic.createComment', () => {
fetch();
fetch(); // not good, 待优化
});
const handleCreateTopic = useCallback(() => {

@ -332,7 +332,7 @@ declare module '@capital/component' {
export const PillTabPane: any;
export const LoadingSpinner: any;
export const LoadingSpinner: React.FC<{ tip?: string }>;
export const WebFastForm: any;
@ -382,7 +382,19 @@ declare module '@capital/component' {
export const Loadable: any;
export const Loading: any;
export const Loading: React.FC<{
spinning: boolean;
className?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
}>;
export const LoadingOnFirst: React.FC<{
spinning: boolean;
className?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
}>;
export const SidebarView: any;

Loading…
Cancel
Save