fix(ui): reformat code

This commit is contained in:
Łukasz Mierzwa
2021-06-05 14:31:48 +01:00
committed by Łukasz Mierzwa
parent af19125091
commit 4cc6d26060
2 changed files with 6 additions and 4 deletions

View File

@@ -27,8 +27,9 @@ export const AlertHistory: FC<{ group: APIAlertGroupT }> = ({ group }) => {
const [upstreams, setUpstreams] = useState<UpstreamT[]>([]);
const [labels] = useState({ ...group.labels, ...group.shared.labels });
const { response, error } = useFetchAny<HistoryResponseT>(upstreams);
const [cachedResponse, setCachedResponse] =
useState<HistoryResponseT | null>(null);
const [cachedResponse, setCachedResponse] = useState<HistoryResponseT | null>(
null
);
const [minMaxValue, setMinMaxValue] = useState<minMaxT>({
minValue: 0,
maxValue: 0,

View File

@@ -12,8 +12,9 @@ const TooltipWrapper: FC<{
children: ReactNode;
className?: string;
}> = ({ title, children, className }) => {
const [referenceElement, setReferenceElement] =
useState<HTMLElement | null>(null);
const [referenceElement, setReferenceElement] = useState<HTMLElement | null>(
null
);
const [popperElement, setPopperElement] = useState<HTMLElement | null>(null);
const { styles, attributes } = usePopper(referenceElement, popperElement, {
placement: "top",