Skip to content

Commit bf5296f

Browse files
committed
style: lint
1 parent 004d6ef commit bf5296f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/components/DataTypeLabel.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ export type DataLabelProps = {
77
enable?: boolean
88
}
99

10-
export const DataTypeLabel: FC<DataLabelProps> = ({
11-
dataType
12-
, enable = true
13-
}) => {
14-
if (!enable) {
15-
return null
16-
}
10+
export const DataTypeLabel: FC<DataLabelProps> = ({ dataType, enable = true }) => {
11+
if (!enable) return null
12+
1713
return (
1814
<DataBox
1915
className='data-type-label'
@@ -23,6 +19,8 @@ export const DataTypeLabel: FC<DataLabelProps> = ({
2319
opacity: 0.8,
2420
userSelect: 'none'
2521
}}
26-
>{dataType}</DataBox>
22+
>
23+
{dataType}
24+
</DataBox>
2725
)
2826
}

0 commit comments

Comments
 (0)