Skip to content

Commit

Permalink
refactor(use-robot-context): 🎉 add reset robot handle
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Sep 11, 2023
1 parent 10b9951 commit 3eb6e17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/contexts/RobotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default ({ children }: any) => {
}, 500);
}

function handleForceReloadRobotPage() {
function handleResetRobot() {
setResponseRobot(undefined);
setResponseBuildManager(undefined);
setResponseLaunchManagers(undefined);
Expand All @@ -341,7 +341,7 @@ export default ({ children }: any) => {
isSettedCookie,
setIsSettedCookie,
handleForceUpdate,
handleForceReloadRobotPage,
handleResetRobot,
}}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useRobot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface IuseRobot {
isSettedCookie: boolean | null;
setIsSettedCookie: any;
handleForceUpdate: any;
handleForceReloadRobotPage: any;
handleResetRobot: () => void;
}

const useRobot = () => {
Expand Down

0 comments on commit 3eb6e17

Please sign in to comment.