소스 검색

icon tag update

jam411 3 년 전
부모
커밋
ef7033d2b4
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      packages/app/src/components/Page/RenderTagLabels.tsx
  2. 1 1
      packages/app/src/components/Page/TagLabels.tsx

+ 2 - 2
packages/app/src/components/Page/RenderTagLabels.tsx

@@ -36,8 +36,8 @@ const RenderTagLabels = React.memo((props: RenderTagLabelsProps) => {
           className={`btn btn-link btn-edit-tags text-muted ${isTagsEmpty ? 'px-2 py-0 no-tags' : 'p-0'} ${isGuestUser && 'disabled'}`}
           className={`btn btn-link btn-edit-tags text-muted ${isTagsEmpty ? 'px-2 py-0 no-tags' : 'p-0'} ${isGuestUser && 'disabled'}`}
           onClick={openEditorHandler}
           onClick={openEditorHandler}
         >
         >
-          { isTagsEmpty && <span>{ t('Add tags for this page') }</span>}
-          <span className={'ml-1 icon-plus'}/>
+          { isTagsEmpty && <>{ t('Add tags for this page') }</>}
+          <i className={'ml-1 icon-plus'}/>
         </a>
         </a>
       </div>
       </div>
       {isGuestUser && (
       {isGuestUser && (

+ 1 - 1
packages/app/src/components/Page/TagLabels.tsx

@@ -37,7 +37,7 @@ export const TagLabels:FC<Props> = (props: Props) => {
   return (
   return (
     <>
     <>
       <div className={`${styles['grw-tag-labels']} grw-tag-labels d-flex align-items-center`} data-testid="grw-tag-labels">
       <div className={`${styles['grw-tag-labels']} grw-tag-labels d-flex align-items-center`} data-testid="grw-tag-labels">
-        <span className="tag-icon icon-tag"/>
+        <i className="tag-icon icon-tag"/>
         <RenderTagLabels
         <RenderTagLabels
           tags={tags}
           tags={tags}
           openEditorModal={openEditorModal}
           openEditorModal={openEditorModal}