mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 11:36:38 +08:00
add dialog
This commit is contained in:
parent
ea67ff73a9
commit
ecfb649c01
@ -134,6 +134,12 @@
|
||||
}
|
||||
.content-input{
|
||||
padding: 20px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
button{
|
||||
background-color: #009999;
|
||||
padding: 9px 20px;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -324,7 +324,6 @@ export function PromptHints(props: {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
function useScrollToBottom() {
|
||||
// for auto-scroll
|
||||
const scrollRef = useRef<HTMLDivElement>(null);
|
||||
@ -592,11 +591,12 @@ export function Chat(props: {
|
||||
) {
|
||||
const copiedHello = Object.assign({}, BOT_HELLO);
|
||||
if (!accessStore.isAuthorized()) {
|
||||
setDialog(true)
|
||||
// copiedHello.content = Locale.Error.Unauthorized;
|
||||
setDialog(true)
|
||||
}
|
||||
context.push(copiedHello);
|
||||
}
|
||||
|
||||
const handleClick = () =>{
|
||||
accessStore.updateCode(dialogValue);
|
||||
setDialog(false)
|
||||
@ -851,10 +851,9 @@ export function Chat(props: {
|
||||
setDialogValue(e.currentTarget.value);
|
||||
}} />
|
||||
</div>
|
||||
<button style="margin-top: 30px" onClick={handleClick}>确定</button>
|
||||
<button onClick={handleClick}>确定</button>
|
||||
</div>
|
||||
</div> : ''}
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user