Skip to content

Commit 223ab81

Browse files
authored
Merge pull request #4 from robertlyson/add-github-token-link
2 parents b46c583 + 38075ed commit 223ab81

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

Octodot/Views/TokenEntryView.swift

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ struct TokenEntryView: View {
1717
Text("Sign in to GitHub")
1818
.font(.system(size: 15, weight: .semibold))
1919

20-
Text("Create a classic Personal Access Token with the\n**notifications** and **repo** scopes at GitHub → Settings → Tokens")
21-
.font(.system(size: 12))
22-
.foregroundStyle(.secondary)
23-
.multilineTextAlignment(.center)
24-
.lineSpacing(2)
20+
VStack(spacing: 4) {
21+
Text("Create a classic Personal Access Token with the\n**notifications** and **repo** scopes.")
22+
.font(.system(size: 12))
23+
.foregroundStyle(.secondary)
24+
.multilineTextAlignment(.center)
25+
.lineSpacing(2)
26+
27+
Link("Create token on GitHub →",
28+
destination: URL(string: "https://github.com/settings/tokens")!)
29+
.font(.system(size: 12))
30+
.foregroundStyle(Color.accentColor)
31+
}
2532

2633
VStack(spacing: 8) {
2734
SecureField("ghp_...", text: $tokenInput)

0 commit comments

Comments
 (0)