From 863ef0b92182404f508a3adcd24f3fd6c711c100 Mon Sep 17 00:00:00 2001 From: mainframev Date: Wed, 18 Dec 2024 22:01:05 +0100 Subject: [PATCH] fixup! docs(react-keytips): add more detailed Overflow example --- packages/react-keytips/package.json | 2 +- .../react-keytips/src/components/Keytips/useKeytipsState.ts | 6 ------ packages/react-keytips/src/constants.ts | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/react-keytips/package.json b/packages/react-keytips/package.json index 009006e1..93a2838c 100644 --- a/packages/react-keytips/package.json +++ b/packages/react-keytips/package.json @@ -5,6 +5,7 @@ "typings": "./src/index.d.ts", "peerDependencies": { "@fluentui/react-components": ">=9.46.3 <10.0.0", + "@fluentui/react-icons": "^2.0.269", "@types/react": ">=16.8.0 <19.0.0", "@types/react-dom": ">=16.8.0 <19.0.0", "react": ">=16.8.0 <19.0.0", @@ -15,7 +16,6 @@ "@fluentui/react-utilities": "^9.16.0", "@fluentui/react-positioning": "^9.15.0", "@fluentui/keyboard-keys": "~9.0.6", - "@fluentui/react-icons": "^2.0.269", "@swc/helpers": "~0.5.2" } } diff --git a/packages/react-keytips/src/components/Keytips/useKeytipsState.ts b/packages/react-keytips/src/components/Keytips/useKeytipsState.ts index 5324f5e2..ef506f33 100644 --- a/packages/react-keytips/src/components/Keytips/useKeytipsState.ts +++ b/packages/react-keytips/src/components/Keytips/useKeytipsState.ts @@ -92,12 +92,6 @@ const stateReducer: React.Reducer = ( }, {} as Keytips), }; } - case ACTIONS.RESET_KEYTIPS: { - return { - ...state, - keytips: {}, - }; - } case ACTIONS.SET_SEQUENCE: { return { ...state, currentSequence: action.value }; } diff --git a/packages/react-keytips/src/constants.ts b/packages/react-keytips/src/constants.ts index e0a8587f..295e5154 100644 --- a/packages/react-keytips/src/constants.ts +++ b/packages/react-keytips/src/constants.ts @@ -47,7 +47,6 @@ export const EXIT_KEYS = [ export const ACTIONS = { ENTER_KEYTIP_MODE: 'ENTER_KEYTIP_MODE', EXIT_KEYTIP_MODE: 'EXIT_KEYTIP_MODE', - RESET_KEYTIPS: 'RESET_KEYTIPS', ADD_KEYTIP: 'ADD_KEYTIP', REMOVE_KEYTIP: 'REMOVE_KEYTIP', UPDATE_KEYTIP: 'UPDATE_KEYTIP',