mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Remove Kodu provider
This commit is contained in:
@@ -20,7 +20,6 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
||||
claudeMessages: [],
|
||||
taskHistory: [],
|
||||
shouldShowAnnouncement: false,
|
||||
shouldShowKoduPromo: false,
|
||||
})
|
||||
const [didHydrateState, setDidHydrateState] = useState(false)
|
||||
|
||||
@@ -30,14 +29,6 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
||||
setState(message.state)
|
||||
setDidHydrateState(true)
|
||||
}
|
||||
if (message.type === "action" && message.action) {
|
||||
switch (message.action) {
|
||||
case "koduCreditsFetched":
|
||||
// special case where we only want to update one part of state in case user is in the middle of modifying settings
|
||||
setState((prevState) => ({ ...prevState, koduCredits: message.state?.koduCredits }))
|
||||
break
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEvent("message", handleMessage)
|
||||
|
||||
Reference in New Issue
Block a user