Skip to content
Snippets Groups Projects
Commit 00ecddf5 authored by Anton Kulyk's avatar Anton Kulyk
Browse files

Run prettier

parent 6a55bc06
Branches
Tags
No related merge requests found
......@@ -103,7 +103,7 @@ export const executeRowAction = ({
emitterId,
parameters,
}: ExecuteRowActionPayload) => {
return async function(dispatch: any) {
return async function (dispatch: any) {
try {
const result = await EmittersApi.execute({
id: emitterId,
......
......@@ -83,11 +83,10 @@ function List({
const rowIndexes = useMemo(() => _.range(0, rows.length), [rows]);
const paginatedRowIndexes = useMemo(() => rowIndexes.slice(start, end + 1), [
rowIndexes,
start,
end,
]);
const paginatedRowIndexes = useMemo(
() => rowIndexes.slice(start, end + 1),
[rowIndexes, start, end],
);
const renderColumnHeader = useCallback(
(col, colIndex) => (
......
......@@ -96,13 +96,8 @@ export default class Text extends Component {
preventDragging = e => e.stopPropagation();
render() {
const {
className,
gridSize,
settings,
isEditing,
isPreviewing,
} = this.props;
const { className, gridSize, settings, isEditing, isPreviewing } =
this.props;
const isSingleRow = gridSize && gridSize.height === 1;
if (isEditing) {
......
......@@ -78,10 +78,10 @@ function ActionButtonViz({
[settings],
);
const extraData = useMemo(() => getExtraDataForClick?.(clicked), [
clicked,
getExtraDataForClick,
]);
const extraData = useMemo(
() => getExtraDataForClick?.(clicked),
[clicked, getExtraDataForClick],
);
const onClick = useCallback(
(e: React.MouseEvent) => {
......
......@@ -151,13 +151,10 @@ function ActionsViz({
insertRow,
updateRow,
}: ActionsVizProps) {
const [isModalOpen, { turnOn: showModal, turnOff: hideModal }] = useToggle(
false,
);
const {
modalContent: confirmationModalContent,
show: requestConfirmation,
} = useConfirmation();
const [isModalOpen, { turnOn: showModal, turnOff: hideModal }] =
useToggle(false);
const { modalContent: confirmationModalContent, show: requestConfirmation } =
useConfirmation();
const connectedDashCardId = settings["actions.linked_card"];
const connectedDashCard = dashboard.ordered_cards.find(
......
......@@ -70,9 +70,10 @@ function getFieldValidationProp(field: Field) {
}
function WritebackForm({ table, row, onSubmit, ...props }: WritebackFormProps) {
const editableFields = useMemo(() => table.fields.filter(isEditableField), [
table,
]);
const editableFields = useMemo(
() => table.fields.filter(isEditableField),
[table],
);
const form = useMemo(() => {
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment