Skip to content

Commit d57973c

Browse files
committed
fix: solve prettier issues
1 parent c9ca871 commit d57973c

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginActions.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export const createPluginActions: CreatePluginActions = ({
6969
// TODO remove side-effect, making functions in this file pure.
7070
// perhaps only show this message in development mode?
7171
console.debug(
72-
`Plugin received a message from container of an unknown action type "${data.action
72+
`Plugin received a message from container of an unknown action type "${
73+
data.action
7374
}". You may need to upgrade the version of the @storyblok/field-plugin library. Full message: ${JSON.stringify(
7475
data,
7576
)}`,
@@ -106,15 +107,23 @@ export const createPluginActions: CreatePluginActions = ({
106107
)
107108
})
108109
},
109-
setModalOpen: (isModalOpen: boolean, modalSize?: { width: string, height: string }) => {
110+
setModalOpen: (
111+
isModalOpen: boolean,
112+
modalSize?: { width: string; height: string },
113+
) => {
110114
return new Promise((resolve) => {
111115
const callbackId = pushCallback('stateChanged', (message) =>
112116
resolve(
113117
pluginStateFromStateChangeMessage(message, validateContent),
114118
),
115119
)
116120
postToContainer(
117-
modalChangeMessage({ uid, callbackId, status: isModalOpen, modalSize }),
121+
modalChangeMessage({
122+
uid,
123+
callbackId,
124+
status: isModalOpen,
125+
modalSize,
126+
}),
118127
)
119128
})
120129
},

packages/field-plugin/src/messaging/pluginMessage/pluginToContainerMessage/ModalChangeMessage.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export const isModalChangeMessage = (obj: unknown): obj is ModalChangeMessage =>
1212
typeof obj.status === 'boolean'
1313

1414
export const modalChangeMessage = (
15-
options: Pick<ModalChangeMessage, 'uid' | 'callbackId' | 'status' | 'modalSize'>,
15+
options: Pick<
16+
ModalChangeMessage,
17+
'uid' | 'callbackId' | 'status' | 'modalSize'
18+
>,
1619
): ModalChangeMessage => ({
1720
action: 'plugin-changed',
1821
event: 'toggleModal',

0 commit comments

Comments
 (0)