Skip to content

Commit

Permalink
refactor: Rename decorators from Decorator to StoreDecorator in Match…
Browse files Browse the repository at this point in the history
…ingPairs.stories.js
  • Loading branch information
drikusroor committed Feb 19, 2024
1 parent e8f0e70 commit cbfa0b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/stories/MatchingPairs.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import MatchingPairs, { SCORE_FEEDBACK_DISPLAY } from '../components/Playback/Ma
import audio from './assets/audio.wav';


const Decorator = (Story) => {
const StoreDecorator = (Story) => {
const setSession = useBoundStore(state => state.setSession);
const setParticipant = useBoundStore(state => state.setParticipant);
setSession({ id: 1 });
Expand Down Expand Up @@ -103,7 +103,7 @@ export const Default = {
args: {
...getDefaultArgs(),
},
decorators: [ Decorator ],
decorators: [ StoreDecorator ],
parameters: {
docs: {
description: {
Expand Down Expand Up @@ -160,7 +160,7 @@ export const WithThreeColumns = {
},
],
}),
decorators: [ Decorator ],
decorators: [ StoreDecorator ],
parameters: {
docs: {
description: {
Expand All @@ -175,7 +175,7 @@ export const WithSmallBottomRightScoreFeedback = {
...getDefaultArgs(),
scoreFeedbackDisplay: SCORE_FEEDBACK_DISPLAY.SMALL_BOTTOM_RIGHT
},
decorators: [ Decorator ],
decorators: [ StoreDecorator ],
parameters: {
docs: {
description: {
Expand All @@ -190,7 +190,7 @@ export const WithShowAnimation = {
...getDefaultArgs(),
showAnimation: true,
},
decorators: [ Decorator ],
decorators: [ StoreDecorator ],
parameters: {
docs: {
description: {
Expand Down

0 comments on commit cbfa0b1

Please sign in to comment.