mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-24 09:05:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,29 +1,27 @@
|
||||
import React from 'react'
|
||||
import type { LocalJSXCommandContext } from '../../commands.js'
|
||||
import type { LocalJSXCommandOnDone } from '../../types/command.js'
|
||||
import { Login } from '../login/login.js'
|
||||
import { runExtraUsage } from './extra-usage-core.js'
|
||||
import React from 'react';
|
||||
import type { LocalJSXCommandContext } from '../../commands.js';
|
||||
import type { LocalJSXCommandOnDone } from '../../types/command.js';
|
||||
import { Login } from '../login/login.js';
|
||||
import { runExtraUsage } from './extra-usage-core.js';
|
||||
|
||||
export async function call(
|
||||
onDone: LocalJSXCommandOnDone,
|
||||
context: LocalJSXCommandContext,
|
||||
): Promise<React.ReactNode | null> {
|
||||
const result = await runExtraUsage()
|
||||
const result = await runExtraUsage();
|
||||
|
||||
if (result.type === 'message') {
|
||||
onDone(result.value)
|
||||
return null
|
||||
onDone(result.value);
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Login
|
||||
startingMessage={
|
||||
'Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.'
|
||||
}
|
||||
startingMessage={'Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.'}
|
||||
onDone={success => {
|
||||
context.onChangeAPIKey()
|
||||
onDone(success ? 'Login successful' : 'Login interrupted')
|
||||
context.onChangeAPIKey();
|
||||
onDone(success ? 'Login successful' : 'Login interrupted');
|
||||
}}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user