Skip to content

Commit 0e01280

Browse files
committed
fix login and add skip login button
1 parent 41f367a commit 0e01280

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/AuthComponent.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class AuthComponent extends React.Component<{
7575
url={url}
7676
onAuth={(credentials, author) => {
7777
onAuth(Git, credentials, author)
78+
this.setState(state => ({...state, authenticated: true}))
7879
}}/>
7980
}
8081
}

src/html/AuthDialog.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ class AuthDialog extends React.Component<{
107107
}}>
108108
Login
109109
</button>
110+
<button type="button"
111+
className="btn btn-outline-primary"
112+
onClick={() => {
113+
onAuth({username: '', password: ''}, {name: '', email: ''})
114+
}}>
115+
Skip
116+
</button>
110117
</div>
111118
</div>
112119
}

0 commit comments

Comments
 (0)