refactor: replace ui components with plane ui components (#2626)

* refactor: replace button component with plane ui component and remove old button component

* refactor: replace dropdown component with plane ui component

* refactor: replace tooltip, input, textarea, spinner and loader component with plane ui component

* refactor: plane ui code refactor
This commit is contained in:
Anmol Singh Bhatia 2023-11-03 17:21:38 +05:30 committed by GitHub
parent 737fea28c6
commit f639e467f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 85 additions and 178 deletions

View file

@ -7,7 +7,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
// components
import { AppliedFiltersList } from "components/issues";
// ui
import { PrimaryButton } from "components/ui";
import { Button } from "@plane/ui";
// helpers
import { areFiltersDifferent } from "helpers/filter.helper";
// types
@ -102,9 +102,9 @@ export const ProjectViewAppliedFiltersRoot: React.FC = observer(() => {
states={projectStore.states?.[projectId?.toString() ?? ""]}
/>
{storedFilters && viewDetails && areFiltersDifferent(storedFilters, viewDetails.query_data ?? {}) && (
<PrimaryButton className="whitespace-nowrap" onClick={handleUpdateView}>
<Button variant="primary" size="sm" onClick={handleUpdateView}>
Update view
</PrimaryButton>
</Button>
)}
</div>
);