Skip to content

Commit

Permalink
Remove unnecessary types
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 20, 2024
1 parent 75d037e commit ca37ee7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/controls/border-color-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export default function BorderColorControl( {
...valuesProp,
};
const instanceId = useInstanceId( BorderColorControl, 'ftb-border-color-control' );
const headingId: string = `${ instanceId }-heading`;
const headingId = `${ instanceId }-heading`;

const isMixed: boolean = ! (
const isMixed = ! (
values.top === values.right &&
values.top === values.bottom &&
values.top === values.left
Expand Down
4 changes: 2 additions & 2 deletions src/controls/border-radius-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export default function BorderRadiusControl( {
...valuesProp,
};
const instanceId = useInstanceId( BorderRadiusControl, 'ftb-border-radius-contro' );
const headingId: string = `${ instanceId }-heading`;
const headingId = `${ instanceId }-heading`;

const isMixed: boolean = ! (
const isMixed = ! (
values.topLeft === values.topRight &&
values.topLeft === values.bottomRight &&
values.topLeft === values.bottomLeft
Expand Down
4 changes: 2 additions & 2 deletions src/controls/border-spacing-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export default function BorderSpacingControl( {
...valuesProp,
};
const instanceId = useInstanceId( BorderSpacingControl, 'ftb-border-spacing-control' );
const headingId: string = `${ instanceId }-heading`;
const headingId = `${ instanceId }-heading`;

const isMixed: boolean = ! ( values.horizontal === values.vertical );
const isMixed = ! ( values.horizontal === values.vertical );

const borderSpacingUnits = useCustomUnits( { availableUnits: BORDER_SPACING_UNITS } );

Expand Down
4 changes: 2 additions & 2 deletions src/controls/border-style-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export default function BorderStyleControl( {
...valuesProp,
};
const instanceId = useInstanceId( BorderStyleControl, 'ftb-border-style-control' );
const headingId: string = `${ instanceId }-heading`;
const headingId = `${ instanceId }-heading`;

const isMixed: boolean =
const isMixed =
allowSides &&
! ( values.top === values.right && values.top === values.bottom && values.top === values.left );

Expand Down
4 changes: 2 additions & 2 deletions src/controls/border-width-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export default function BorderWidthControl( {
...valuesProp,
};
const instanceId = useInstanceId( BorderWidthControl, 'ftb-border-width-control' );
const headingId: string = `${ instanceId }-heading`;
const headingId = `${ instanceId }-heading`;

const isMixed: boolean =
const isMixed =
allowSides &&
! ( values.top === values.right && values.top === values.bottom && values.top === values.left );

Expand Down
2 changes: 1 addition & 1 deletion src/controls/color-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function ColorControl( {
value,
}: Props ) {
const instanceId = useInstanceId( ColorControl, 'ftb-color-control' );
const headingId: string = `${ instanceId }-heading`;
const headingId = `${ instanceId }-heading`;

const colors = useSelect( ( select ) => {
const settings = select(
Expand Down
4 changes: 2 additions & 2 deletions src/controls/padding-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export default function PaddingControl( {
}: Props ) {
const values = { ...DEFAULT_VALUES, ...valuesProp };
const instanceId = useInstanceId( PaddingControl, 'ftb-padding-control' );
const headingId: string = `${ instanceId }-heading`;
const headingId = `${ instanceId }-heading`;

const isMixed: boolean = ! (
const isMixed = ! (
values.top === values.right &&
values.top === values.bottom &&
values.top === values.left
Expand Down

0 comments on commit ca37ee7

Please sign in to comment.