Skip to content

Commit 3143767

Browse files
committed
fix lint
1 parent a1064b0 commit 3143767

2 files changed

Lines changed: 19 additions & 11 deletions

File tree

apps/roam/src/components/results-view/Kanban.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
// Design inspiration from Trello
2-
import React, { useCallback, useEffect, useMemo, useRef, useState} from "react";
2+
import React, {
3+
useCallback,
4+
useEffect,
5+
useMemo,
6+
useRef,
7+
useState,
8+
} from "react";
39
import { Column, Result } from "~/utils/types";
410
import { Button, Icon, InputGroup, Popover } from "@blueprintjs/core";
511
import Draggable, { DraggableData, DraggableEvent } from "react-draggable";

apps/roam/src/components/results-view/Timeline.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ const Timeline: React.FunctionComponent<TimelineProps> = ({
117117
selection.
118118
</p>
119119
) : (
120-
<><VerticalTimeline layout={"2-columns"} className={"mt-1"}>
121-
<style>{`.vertical-timeline-element-body > .rm-block > .rm-block-main {
120+
<>
121+
<VerticalTimeline layout={"2-columns"} className={"mt-1"}>
122+
<style>{`.vertical-timeline-element-body > .rm-block > .rm-block-main {
122123
display: none;
123124
}
124125
@@ -129,14 +130,15 @@ const Timeline: React.FunctionComponent<TimelineProps> = ({
129130
.vertical-timeline-element-body > .rm-block > .rm-block-children {
130131
margin-left: -32px;
131132
}`}</style>
132-
{datedTimelineElements.map((t, i) => (
133-
<TimelineElement
134-
color={colors[i % colors.length]}
135-
t={t}
136-
key={`${t.uid}-${t.date}`}
137-
/>
138-
))}
139-
</VerticalTimeline></>
133+
{datedTimelineElements.map((t, i) => (
134+
<TimelineElement
135+
color={colors[i % colors.length]}
136+
t={t}
137+
key={`${t.uid}-${t.date}`}
138+
/>
139+
))}
140+
</VerticalTimeline>
141+
</>
140142
);
141143
};
142144

0 commit comments

Comments
 (0)