diff --git a/example/index.ts b/example/index.ts index 34286ff..33c445f 100644 --- a/example/index.ts +++ b/example/index.ts @@ -159,5 +159,6 @@ run({ uiPath: '/scenarios-ui', modifyScenariosPath: '/modify', resetScenariosPath: '/reset', + cookieMode: true, }, }); diff --git a/src/Html.tsx b/src/Html.tsx index cc4e6fd..026573b 100644 --- a/src/Html.tsx +++ b/src/Html.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { UiGroups } from './types'; +import { Groups } from './types'; function Html({ updatedScenarios, @@ -9,14 +9,10 @@ function Html({ other, }: { uiPath: string; - groups: UiGroups; - other: Array<{ name: string; checked: boolean }>; + groups: Groups; + other: Array<{ id: string; selected: boolean }>; updatedScenarios?: string[]; }) { - if (uiPath[uiPath.length - 1] !== '/') { - uiPath = uiPath + '/'; - } - return (
@@ -25,7 +21,10 @@ function Html({