File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,7 @@ import FeedbackDialog from "../../components/dialogs/FeedbackDialog";
5252import { FatalErrorIndicator } from "../../components/config/FatalErrorNotice" ;
5353import InlineErrorMessage from "../../components/mainInput/InlineErrorMessage" ;
5454import { resolveEditorContent } from "../../components/mainInput/TipTapEditor/utils/resolveEditorContent" ;
55- import {
56- setDialogEntryOn ,
57- setDialogMessage ,
58- setShowDialog ,
59- } from "../../redux/slices/uiSlice" ;
55+ import { setDialogMessage , setShowDialog } from "../../redux/slices/uiSlice" ;
6056import { RootState } from "../../redux/store" ;
6157import { cancelStream } from "../../redux/thunks/cancelStream" ;
6258import { getLocalStorage , setLocalStorage } from "../../util/localStorage" ;
@@ -283,7 +279,6 @@ export function Chat() {
283279 setLocalStorage ( "mainTextEntryCounter" , currentCount + 1 ) ;
284280 if ( currentCount === 300 ) {
285281 dispatch ( setDialogMessage ( < FeedbackDialog /> ) ) ;
286- dispatch ( setDialogEntryOn ( false ) ) ;
287282 dispatch ( setShowDialog ( true ) ) ;
288283 }
289284 } else {
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ export type ToolGroupPolicies = { [toolGroupName: string]: ToolGroupPolicy };
1919type UIState = {
2020 showDialog : boolean ;
2121 dialogMessage : JSX . Element | undefined ;
22- dialogEntryOn : boolean ;
2322 onboardingCard : OnboardingCardState ;
2423 isExploreDialogOpen : boolean ;
2524 hasDismissedExploreDialog : boolean ;
@@ -35,7 +34,6 @@ export const DEFAULT_RULE_SETTING: RulePolicy = "on";
3534export const DEFAULT_UI_SLICE : UIState = {
3635 showDialog : false ,
3736 dialogMessage : undefined ,
38- dialogEntryOn : false ,
3937 onboardingCard : defaultOnboardingCardState ,
4038 isExploreDialogOpen :
4139 getLocalStorage ( LocalStorageKey . IsExploreDialogOpen ) ?? false ,
@@ -66,12 +64,6 @@ export const uiSlice = createSlice({
6664 ) => {
6765 state . dialogMessage = action . payload ;
6866 } ,
69- setDialogEntryOn : (
70- state ,
71- action : PayloadAction < UIState [ "dialogEntryOn" ] > ,
72- ) => {
73- state . dialogEntryOn = action . payload ;
74- } ,
7567 setShowDialog : ( state , action : PayloadAction < UIState [ "showDialog" ] > ) => {
7668 state . showDialog = action . payload ;
7769 } ,
@@ -153,7 +145,6 @@ export const uiSlice = createSlice({
153145export const {
154146 setOnboardingCard,
155147 setDialogMessage,
156- setDialogEntryOn,
157148 setShowDialog,
158149 setIsExploreDialogOpen,
159150 toggleToolSetting,
You can’t perform that action at this time.
0 commit comments