push
github
1381 of 2789 branches covered (49.52%)
0 of 265 new or added lines in 30 files covered. (0.0%)
13889 of 77568 relevant lines covered (17.91%)
1.79 hits per line
NEW
|
import { RowHeightLevel } from '@teable/core'; |
|
NEW
|
import { DivideSquare, Menu, Square, StretchHorizontal } from '@teable/icons'; |
× |
NEW
|
import { useMemo } from 'react'; |
× |
NEW
|
import { useTranslation } from '../../context/app/i18n'; |
× |
NEW
|
|
× |
NEW
|
export const useRowHeightNodes = () => { |
× |
NEW
|
const { t } = useTranslation();
|
× |
NEW
|
|
× |
NEW
|
return useMemo(
|
× |
NEW
|
() => [ |
× |
NEW
|
{ |
× |
NEW
|
label: t('rowHeight.short'), |
× |
NEW
|
value: RowHeightLevel.Short, |
× |
NEW
|
Icon: Menu, |
× |
NEW
|
}, |
× |
NEW
|
{ |
× |
NEW
|
label: t('rowHeight.medium'), |
× |
NEW
|
value: RowHeightLevel.Medium, |
× |
NEW
|
Icon: StretchHorizontal, |
× |
NEW
|
}, |
× |
NEW
|
{ |
× |
NEW
|
label: t('rowHeight.tall'), |
× |
NEW
|
value: RowHeightLevel.Tall, |
× |
NEW
|
Icon: DivideSquare, |
× |
NEW
|
}, |
× |
NEW
|
{ |
× |
NEW
|
label: t('rowHeight.extraTall'), |
× |
NEW
|
value: RowHeightLevel.ExtraTall, |
× |
NEW
|
Icon: Square, |
× |
NEW
|
}, |
× |
NEW
|
], |
× |
NEW
|
[t] |
× |
NEW
|
); |
× |
NEW
|
}; |
× |