diff --git a/src/components/Article/Comment.tsx b/src/components/Article/Comment.tsx index 1f5411cf..89401946 100644 --- a/src/components/Article/Comment.tsx +++ b/src/components/Article/Comment.tsx @@ -1,4 +1,5 @@ import styles from './Comment.module.scss' +import type { JSX } from 'solid-js/jsx-runtime' import { Icon } from '../_shared/Icon' import { AuthorCard } from '../Author/Card' import { Show, createMemo, createSignal } from 'solid-js' @@ -12,13 +13,13 @@ import { formatDate } from '../../utils' import { SharePopup } from './SharePopup' import stylesHeader from '../Nav/Header.module.scss' import Userpic from '../Author/Userpic' -import CommentWrapper from './CommentWrapper' export default (props: { level?: number comment: Partial canEdit?: boolean compact?: boolean + children?: JSX.Element[] }) => { const [isReplyVisible, setIsReplyVisible] = createSignal(false) @@ -35,116 +36,117 @@ export default (props: { ) return ( - -
  • - - - } - > -
    -
    - -
    - -
    {formattedDate()}
    -
    0, - [styles.commentRatingNegative]: comment().stat?.rating < 0 - }} - > -
    +
  • + + + } + > +
    +
    +
    - -
    - +
    {formattedDate()}
    +
    0, + [styles.commentRatingNegative]: comment().stat?.rating < 0 + }} + > +
    +
    + + +
    + +
    + + +
    + + + + {/*FIXME implement edit comment modal*/} + {/* showModal('editComment')}*/} + {/*>*/} + {/* */} + {/* {t('Edit')}*/} + {/**/} + + + + + + {t('Share')} + + } + /> + + {/* showModal('reportComment')}*/} + {/*>*/} + {/* {t('Report')}*/} + {/**/}
    - -
    - - - - {/*FIXME implement edit comment modal*/} - {/* showModal('editComment')}*/} - {/*>*/} - {/* */} - {/* {t('Edit')}*/} - {/**/} -