File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,7 @@ const MemoDetail = () => {
9393 < div className = "memo-container" >
9494 < div className = "memo-header" >
9595 < span className = "time-text" > { dayjs ( state . memo . createdTs ) . locale ( i18n . language ) . format ( "YYYY/MM/DD HH:mm:ss" ) } </ span >
96- < span className = "split-text" > by</ span >
97- < a className = "name-text" href = { `/u/${ state . memo . creator . id } ` } >
98- { state . memo . creator . name }
99- </ a >
100- { user ?. id === state . memo . creatorId && (
96+ { user ?. id === state . memo . creatorId ? (
10197 < Dropdown
10298 className = "visibility-selector"
10399 trigger = {
@@ -120,6 +116,13 @@ const MemoDetail = () => {
120116 }
121117 actionsClassName = "!w-28 !left-0 !p-1"
122118 />
119+ ) : (
120+ < >
121+ < span className = "split-text" > by</ span >
122+ < a className = "name-text" href = { `/u/${ state . memo . creator . id } ` } >
123+ { state . memo . creator . name }
124+ </ a >
125+ </ >
123126 ) }
124127 </ div >
125128 < MemoContent className = "memo-content" content = { state . memo . content } onMemoContentClick = { ( ) => undefined } />
You can’t perform that action at this time.
0 commit comments