Skip to content

Commit

Permalink
fix: fixed naming inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzy-mankowski committed Dec 12, 2024
1 parent 43df0ff commit 9b18bb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/react/src/transformationParsers/parseEffects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export const parseEffects = (parseRemoveBackground: typeof ParseRemoveBackground
switch (effect.type) {
case 'sepia':
return `e_sepia${effect.level ? `:${effect.level}` : ''}`;
// FIXME naming incosistency with inline prop / parser
case 'backgroundRemoval':
case 'removeBackground':
return parseRemoveBackground(effect.mode ?? true);
case 'fade':
return `e_fade:${effect.duration}`;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/transformationTypes/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Sepia = {
};
// FIXME image only
type BackgroundRemoval = {
type: 'backgroundRemoval';
type: 'removeBackground';
mode?: 'fineEdges';
};

Expand Down

0 comments on commit 9b18bb5

Please sign in to comment.