mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed local warnings in the terminal when building for comments
no issue
This commit is contained in:
parent
fa056be39b
commit
2d79ef7cf9
3 changed files with 6 additions and 6 deletions
|
@ -94,7 +94,7 @@ const Comment = ({updateIsEditing = null, isEditing, ...props}) => {
|
|||
<div className="flex-0 mb-4">
|
||||
<Avatar comment={comment} saturation={avatarSaturation} isBlank={isNotPublished} />
|
||||
</div>
|
||||
{(!props.isReply && hasReplies || isInReplyMode) && <div className="w-[3px] h-full mb-2 bg-gradient-to-b from-neutral-100 via-neutral-100 to-transparent dark:from-[rgba(255,255,255,0.05)] dark:via-[rgba(255,255,255,0.05)] grow rounded" />}
|
||||
{((!props.isReply && hasReplies) || isInReplyMode) && <div className="w-[3px] h-full mb-2 bg-gradient-to-b from-neutral-100 via-neutral-100 to-transparent dark:from-[rgba(255,255,255,0.05)] dark:via-[rgba(255,255,255,0.05)] grow rounded" />}
|
||||
</div>
|
||||
<div className="grow">
|
||||
<div className="flex items-start -mt-[3px] mb-2">
|
||||
|
|
|
@ -13,7 +13,7 @@ const CommentsBoxTitle = ({title, showCount, count}) => {
|
|||
return null;
|
||||
}
|
||||
|
||||
const Title = ({title}) => {
|
||||
const Title = () => {
|
||||
if (title === null) {
|
||||
return (
|
||||
<><span className="hidden sm:inline">Member </span><span className="capitalize sm:normal-case">discussion</span></>
|
||||
|
@ -23,7 +23,7 @@ const CommentsBoxTitle = ({title, showCount, count}) => {
|
|||
return title;
|
||||
};
|
||||
|
||||
const Count = ({showCount, count}) => {
|
||||
const Count = () => {
|
||||
if (!showCount) {
|
||||
return null;
|
||||
}
|
||||
|
@ -42,9 +42,9 @@ const CommentsBoxTitle = ({title, showCount, count}) => {
|
|||
return (
|
||||
<div className="w-full flex justify-between items-baseline font-sans mb-10">
|
||||
<h2 className="font-bold text-[2.8rem] tracking-tight dark:text-[rgba(255,255,255,0.85)]">
|
||||
<Title title={title}/>
|
||||
<Title />
|
||||
</h2>
|
||||
<Count showCount={showCount} count={count}/>
|
||||
<Count />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -59,7 +59,7 @@ const AddNameDialog = (props) => {
|
|||
clearTimeout(timer);
|
||||
};
|
||||
}
|
||||
}, [inputNameRef, inputBioRef]);
|
||||
}, [inputNameRef, inputBioRef, props.bioAutofocus]);
|
||||
|
||||
const renderExampleProfiles = (index) => {
|
||||
const renderEl = (profile) => {
|
||||
|
|
Loading…
Reference in a new issue