Skip to content

Commit

Permalink
fix(cropper): use SelectorsFn instead of ThemeRef.selectorsOf
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Sep 1, 2024
1 parent a70adff commit e0a4780
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/image-cropper/image-cropper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
LY_COMMON_STYLES,
ThemeVariables,
lyl,
ThemeRef,
StyleCollection,
LyClasses,
StyleTemplate,
Expand Down Expand Up @@ -52,8 +51,8 @@ const STYLE_PRIORITY = -2;
const DATA_IMAGE_SVG_PREFIX = 'data:image/svg+xml;base64,';
const pos = (100 * Math.sqrt(2) - 100) / 2 / Math.sqrt(2);

export const STYLES = (theme: ThemeVariables & LyImageCropperVariables, ref: ThemeRef) => {
const $$ = ref.selectorsOf(STYLES);
export const STYLES = (theme: ThemeVariables & LyImageCropperVariables, selectors: SelectorsFn) => {
const $$ = selectors(STYLES);
const { after } = theme;
const transition = `${theme.animations.curves.acceleration} 100ms`;
return {
Expand Down

0 comments on commit e0a4780

Please sign in to comment.