chore: make TS enums strictly PascalCase (#26875)

This commit is contained in:
Ville Brofeldt
2024-01-31 17:40:44 -08:00
committed by GitHub
parent 959a5a5ad6
commit 19f8405bc0
362 changed files with 2002 additions and 2032 deletions

View File

@@ -310,7 +310,7 @@ export const useTableColumns = (
const colType = coltypes?.[index];
const firstValue = data[0][key];
const originalFormattedTimeColumnIndex =
colType === GenericDataType.TEMPORAL
colType === GenericDataType.Temporal
? originalFormattedTimeColumns.indexOf(key)
: -1;
const isOriginalTimeColumn =
@@ -320,7 +320,7 @@ export const useTableColumns = (
id: key || index,
accessor: row => row[key],
Header:
colType === GenericDataType.TEMPORAL &&
colType === GenericDataType.Temporal &&
typeof firstValue !== 'string' ? (
<DataTableTemporalHeaderCell
columnName={key}
@@ -342,7 +342,7 @@ export const useTableColumns = (
return <CellNull>{NULL_DISPLAY}</CellNull>;
}
if (
colType === GenericDataType.TEMPORAL &&
colType === GenericDataType.Temporal &&
originalFormattedTimeColumnIndex === -1 &&
typeof value === 'number'
) {