Skip to content

Commit

Permalink
added some feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMilord committed Nov 14, 2024
1 parent 890cf0f commit 45ebbba
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,10 @@ export default class QuanticSort extends LightningElement {
sortBy,
};

variants = {
default: {
name: SORT_VARIANTS.DEFAULT,
},
wide: {
name: SORT_VARIANTS.WIDE,
},
};

connectedCallback() {
if (!Object.values(SORT_VARIANTS).includes(this.variant)) {
console.warn(
`Unsupported variant: ${this.variant} specified in the QuanticSort component, defaulting to the ${SORT_VARIANTS.DEFAULT} variant.`
`Unsupported variant: ${this.variant} specified in the QuanticSort component, using the default variant.`
);
}
registerComponentForInit(this, this.engineId);
Expand Down Expand Up @@ -280,12 +271,6 @@ export default class QuanticSort extends LightningElement {
return this.hasInitializationError || !!this.errorMessage;
}

get sortContainerCSSClass() {
return this.variant === SORT_VARIANTS.DEFAULT
? 'sort__container'
: undefined;
}

get isVariantWide() {
return this.variant === SORT_VARIANTS.WIDE;
}
Expand Down

0 comments on commit 45ebbba

Please sign in to comment.