Skip to content

Commit

Permalink
tidy(ui): consistent naming for selector builder util
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Oct 11, 2024
1 parent f860e33 commit 888a124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
selectIsolatedTransformingPreview,
} from 'features/controlLayers/store/canvasSettingsSlice';
import {
buildEntityIsHiddenSelector,
buildSelectIsHidden,
buildSelectIsSelected,
selectBboxRect,
selectCanvasSlice,
Expand Down Expand Up @@ -250,7 +250,7 @@ export abstract class CanvasEntityAdapterBase<
assert(state !== undefined, 'Missing entity state on creation');
this.state = state;

this.selectIsHidden = buildEntityIsHiddenSelector(this.entityIdentifier);
this.selectIsHidden = buildSelectIsHidden(this.entityIdentifier);
this.selectIsSelected = buildSelectIsSelected(this.entityIdentifier);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const getSelectIsTypeHidden = (type: CanvasEntityType) => {
/**
* Builds a selector taht selects if the entity is hidden.
*/
export const buildEntityIsHiddenSelector = (entityIdentifier: CanvasEntityIdentifier) => {
export const buildSelectIsHidden = (entityIdentifier: CanvasEntityIdentifier) => {
const selectIsTypeHidden = getSelectIsTypeHidden(entityIdentifier.type);
return createSelector(
[selectCanvasSlice, selectIsTypeHidden, selectIsStaging, selectIsolatedStagingPreview],
Expand Down

0 comments on commit 888a124

Please sign in to comment.