mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-16 00:05:56 +08:00
fix api method renames
This commit is contained in:
parent
a35701d292
commit
166aeb6d2d
@ -52,7 +52,7 @@ export const LegacyRender = ({ ...state }: TestProviders[keyof TestProviders]) =
|
||||
variant="ghost"
|
||||
padding="small"
|
||||
active={state.watching}
|
||||
onClick={() => api.onSetWatchMode(state.id, !state.watching)}
|
||||
onClick={() => api.setTestProviderWatchMode(state.id, !state.watching)}
|
||||
disabled={state.crashed || state.running}
|
||||
>
|
||||
<EyeIcon />
|
||||
@ -65,7 +65,7 @@ export const LegacyRender = ({ ...state }: TestProviders[keyof TestProviders]) =
|
||||
aria-label={`Stop ${name}`}
|
||||
variant="ghost"
|
||||
padding="small"
|
||||
onClick={() => api.onCancelTests(state.id)}
|
||||
onClick={() => api.cancelTestProvider(state.id)}
|
||||
disabled={state.cancelling}
|
||||
>
|
||||
<StopAltHollowIcon />
|
||||
@ -75,7 +75,7 @@ export const LegacyRender = ({ ...state }: TestProviders[keyof TestProviders]) =
|
||||
aria-label={`Start ${state.name}`}
|
||||
variant="ghost"
|
||||
padding="small"
|
||||
onClick={() => api.onRunTests(state.id)}
|
||||
onClick={() => api.runTestProvider(state.id)}
|
||||
disabled={state.crashed || state.running}
|
||||
>
|
||||
<PlayHollowIcon />
|
||||
|
Loading…
x
Reference in New Issue
Block a user