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
|
<StyledEditableTitleInput
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
autoFocus
|
autoFocus
|
||||||
placeholder={`${type} title (optional)`}
|
placeholder={`${type} title`}
|
||||||
onChange={(event) => onTitleChange(event.target.value)}
|
onChange={(event) => onTitleChange(event.target.value)}
|
||||||
value={title}
|
value={title}
|
||||||
completed={completed}
|
completed={completed}
|
||||||
|
|||||||
@ -86,7 +86,7 @@ export function TaskRow({ task }: { task: TaskForList }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<StyledTaskTitle completed={task.completedAt !== null}>
|
<StyledTaskTitle completed={task.completedAt !== null}>
|
||||||
{task.title ?? '(No title)'}
|
{task.title ?? 'Task Title'}
|
||||||
</StyledTaskTitle>
|
</StyledTaskTitle>
|
||||||
<StyledTaskBody>
|
<StyledTaskBody>
|
||||||
<OverflowingTextWithTooltip text={body} />
|
<OverflowingTextWithTooltip text={body} />
|
||||||
|
|||||||
@ -167,9 +167,7 @@ export function TimelineActivity({ activity }: OwnProps) {
|
|||||||
onCompletionChange={completeTask}
|
onCompletionChange={completeTask}
|
||||||
/>
|
/>
|
||||||
<StyledCardContent>
|
<StyledCardContent>
|
||||||
<OverflowingTextWithTooltip
|
{body && <OverflowingTextWithTooltip text={body ? body : ''} />}
|
||||||
text={body ? body : '(No content)'}
|
|
||||||
/>
|
|
||||||
</StyledCardContent>
|
</StyledCardContent>
|
||||||
</StyledCardDetailsContainer>
|
</StyledCardDetailsContainer>
|
||||||
<TimelineActivityCardFooter activity={activity} />
|
<TimelineActivityCardFooter activity={activity} />
|
||||||
|
|||||||
@ -66,7 +66,7 @@ export function TimelineActivityTitle({
|
|||||||
completed={completed}
|
completed={completed}
|
||||||
hasCheckbox={type === ActivityType.Task}
|
hasCheckbox={type === ActivityType.Task}
|
||||||
>
|
>
|
||||||
<OverflowingTextWithTooltip text={title ? title : '(No title)'} />
|
<OverflowingTextWithTooltip text={title ? title : 'Task title'} />
|
||||||
</StyledTitleText>
|
</StyledTitleText>
|
||||||
</StyledTitleContainer>
|
</StyledTitleContainer>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user