Fix: Change title strings (#1212)
* change title strings * add conditional operator
This commit is contained in:
committed by
GitHub
parent
cd1bf14925
commit
5890354d21
@ -73,7 +73,7 @@ export function ActivityTitle({
|
||||
<StyledEditableTitleInput
|
||||
autoComplete="off"
|
||||
autoFocus
|
||||
placeholder={`${type} title (optional)`}
|
||||
placeholder={`${type} title`}
|
||||
onChange={(event) => onTitleChange(event.target.value)}
|
||||
value={title}
|
||||
completed={completed}
|
||||
|
||||
@ -86,7 +86,7 @@ export function TaskRow({ task }: { task: TaskForList }) {
|
||||
/>
|
||||
</div>
|
||||
<StyledTaskTitle completed={task.completedAt !== null}>
|
||||
{task.title ?? '(No title)'}
|
||||
{task.title ?? 'Task Title'}
|
||||
</StyledTaskTitle>
|
||||
<StyledTaskBody>
|
||||
<OverflowingTextWithTooltip text={body} />
|
||||
|
||||
@ -167,9 +167,7 @@ export function TimelineActivity({ activity }: OwnProps) {
|
||||
onCompletionChange={completeTask}
|
||||
/>
|
||||
<StyledCardContent>
|
||||
<OverflowingTextWithTooltip
|
||||
text={body ? body : '(No content)'}
|
||||
/>
|
||||
{body && <OverflowingTextWithTooltip text={body ? body : ''} />}
|
||||
</StyledCardContent>
|
||||
</StyledCardDetailsContainer>
|
||||
<TimelineActivityCardFooter activity={activity} />
|
||||
|
||||
@ -66,7 +66,7 @@ export function TimelineActivityTitle({
|
||||
completed={completed}
|
||||
hasCheckbox={type === ActivityType.Task}
|
||||
>
|
||||
<OverflowingTextWithTooltip text={title ? title : '(No title)'} />
|
||||
<OverflowingTextWithTooltip text={title ? title : 'Task title'} />
|
||||
</StyledTitleText>
|
||||
</StyledTitleContainer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user