mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: saveToken
This commit is contained in:
parent
00f5217f87
commit
685edbf7db
1 changed files with 7 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import * as React from 'react'
|
||||
import Icon from 'components/Icon'
|
||||
import * as React from 'react'
|
||||
import configHelper, { configKeys } from 'utils/configHelper'
|
||||
import { friendlyFormatShortcut, JSONRequest, parseURLSearch } from 'utils/general'
|
||||
import keyHelper from 'utils/keyHelper'
|
||||
import { friendlyFormatShortcut, parseURLSearch, JSONRequest } from 'utils/general'
|
||||
import { version } from '../../package.json'
|
||||
|
||||
const wikiLinks = {
|
||||
|
|
@ -258,7 +258,11 @@ export default class SettingsBar extends React.PureComponent<Props, State> {
|
|||
Clear
|
||||
</button>
|
||||
) : (
|
||||
<button className={'btn'} onClick={this.saveToken} disabled={!accessToken}>
|
||||
<button
|
||||
className={'btn'}
|
||||
onClick={() => this.saveToken()}
|
||||
disabled={!accessToken}
|
||||
>
|
||||
Save
|
||||
</button>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue