Skip to content

Commit

Permalink
fix button size
Browse files Browse the repository at this point in the history
  • Loading branch information
CamronStaley committed Nov 6, 2024
1 parent ebfa68e commit c940dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const NumericFieldFilter = ({ color, modal, named = true, path }: Props) => {
color: theme.text.secondary,
borderRadius: "8px",
border: "1px solid " + theme.secondary.main,
height: "30px",
}}
>
Filter by {name}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,9 @@
import { pathColor } from "@fiftyone/state";
import React, { useEffect } from "react";
import React from "react";
import { useRecoilValue } from "recoil";
import FilterItem from "./FilterItem";
import useFilterData from "./useFilterData";

const TIMEOUT = 0;

class QueryPerformanceToast extends Event {
path?: string;
constructor(path?: string) {
super("queryperformance");
this.path = path;
}
}

const QueryPerformanceDispatcher = ({ path }: { path: string }) => {
useEffect(() => {
const timeout = setTimeout(() => {
window.dispatchEvent(new QueryPerformanceToast(path));
}, TIMEOUT);

return () => clearTimeout(timeout);
}, [path]);
return null;
};

const FilterablePathEntries = ({
modal,
path,
Expand Down

0 comments on commit c940dd8

Please sign in to comment.