This commit is contained in:
Norbert de Langen 2020-02-14 13:19:06 +01:00
parent a04a660a86
commit 67b42244f5
No known key found for this signature in database
GPG Key ID: 976651DA156C2825
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ const copyMapper = ({ state }: Combo) => ({
export const copyTool: Addon = {
title: 'copy',
match: p => p.viewMode === 'story',
match: ({ viewMode }) => viewMode === 'story',
render: () => (
<Consumer filter={copyMapper}>
{({ baseUrl, storyId, origin, pathname, queryParams }: ReturnType<typeof copyMapper>) => (

View File

@ -12,7 +12,7 @@ const ejectMapper = ({ state }: Combo) => ({
export const ejectTool: Addon = {
title: 'eject',
match: p => p.viewMode === 'story',
match: ({ viewMode }) => viewMode === 'story',
render: () => (
<Consumer filter={ejectMapper}>
{({ baseUrl, storyId, queryParams }: ReturnType<typeof ejectMapper>) => (

View File

@ -54,7 +54,7 @@ export { Zoom, ZoomConsumer, ZoomProvider };
export const zoomTool: Addon = {
title: 'zoom',
match: p => p.viewMode === 'story',
match: ({ viewMode }) => viewMode === 'story',
render: () => (
<Fragment>
<ZoomConsumer>