Skip to content

Commit

Permalink
重构于新版本后,修复 lint 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed May 7, 2024
1 parent fe2f6f1 commit 5d6ccbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions app/src/ui/add-repository/create-repository.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,7 @@ export class CreateRepository extends React.Component<
ariaLiveMessage={`储存库将会命名为 ${sanitizedName},空格与无效字符会被替换为横线。`}
>
<p>储存库将会命名为 {sanitizedName}</p>
<span className="sr-only">
空格与无效字符会被替换为横线。
</span>
<span className="sr-only">空格与无效字符会被替换为横线。</span>
</InputWarning>
)
}
Expand Down
4 changes: 1 addition & 3 deletions app/src/ui/undo/warn-local-changes-before-undo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ export class WarnLocalChangesBeforeUndo extends React.Component<
}
return (
<DialogContent>
<p>
当前仍有未提交的改动,撤回提交可能导致这些改动丢失。
</p>
<p>当前仍有未提交的改动,撤回提交可能导致这些改动丢失。</p>
<p>{this.getMergeCommitUndoWarningText()}</p>
<p>确定要继续吗?</p>
</DialogContent>
Expand Down
4 changes: 1 addition & 3 deletions app/src/ui/welcome/start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ export class Start extends React.Component<IStartProps, {}> {
</p>
<p>
GitHub Desktop 会发送使用情况数据来帮助优化产品和调整功能。{' '}
<LinkButton uri={SamplesURL}>
了解使用情况数据
</LinkButton>
<LinkButton uri={SamplesURL}>了解使用情况数据</LinkButton>
</p>
</div>
</section>
Expand Down

0 comments on commit 5d6ccbd

Please sign in to comment.