Skip to content

Commit

Permalink
chore: add spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
alaca committed Oct 24, 2023
1 parent fdc12ce commit 7d311f2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ export default function useDonationFormPubSub() {

const publishSettings = (data: RequireAtLeastOne<FormSettings>) => {
publish(PREVIEW_EVENTS.SETTINGS, data, iframeRef)
};
}

const publishGoal = (data: RequireAtLeastOne<FormGoal>) => {
publish(PREVIEW_EVENTS.GOAL, data, iframeRef)
};
}

const publishColors = (data: RequireAtLeastOne<FormColors>) => {
publish(PREVIEW_EVENTS.COLORS, data, iframeRef)
};
}

const subscribeToSettings = (callback: (data: FormSettings) => void) => {
subscribe(PREVIEW_EVENTS.SETTINGS, callback)
Expand All @@ -82,6 +83,7 @@ export default function useDonationFormPubSub() {
const subscribeToGoal = (callback: (data: FormGoal) => void) => {
subscribe(PREVIEW_EVENTS.GOAL, callback)
}

const subscribeToColors = (callback: (data: FormColors) => void) => {
subscribe(PREVIEW_EVENTS.COLORS, callback)
}
Expand Down

0 comments on commit 7d311f2

Please sign in to comment.