chore: clean up and resolved import warnings

This commit is contained in:
gurusainath 2023-09-14 16:09:43 +05:30
parent c67f08fca4
commit 60883baea7
15 changed files with 16 additions and 29 deletions

View File

@ -9,7 +9,7 @@ import { RootStore } from "store/root";
export const FilterDisplayProperties = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -12,7 +12,7 @@ import { issueFilterVisibilityData } from "store/issue-views/issue_data";
export const FilterExtraOptions = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -10,7 +10,7 @@ import { RootStore } from "store/root";
export const FilterGroupBy = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -10,7 +10,7 @@ import { RootStore } from "store/root";
export const FilterIssueType = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -10,7 +10,7 @@ import { RootStore } from "store/root";
export const FilterOrderBy = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -1,6 +1,4 @@
import React from "react";
// lucide icons
import { Check, ChevronDown, ChevronUp } from "lucide-react";
// components
import { FilterHeader } from "../helpers/filter-header";
import { FilterOption } from "../helpers/filter-option";
@ -30,7 +28,7 @@ export const MemberIcons = ({
export const FilterAssignees = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -1,6 +1,4 @@
import React from "react";
// lucide icons
import { Check, ChevronDown, ChevronUp } from "lucide-react";
// components
import { MemberIcons } from "./assignees";
import { FilterHeader } from "../helpers/filter-header";
@ -13,7 +11,7 @@ import { RootStore } from "store/root";
export const FilterCreatedBy = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -1,6 +1,4 @@
import React from "react";
// lucide icons
import { Check, ChevronDown, ChevronUp } from "lucide-react";
// components
import { FilterHeader } from "../helpers/filter-header";
import { FilterOption } from "../helpers/filter-option";
@ -18,7 +16,7 @@ const LabelIcons = ({ color }: { color: string }) => (
export const FilterLabels = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -52,7 +52,7 @@ const PriorityIcons = ({
export const FilterPriority = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -1,6 +1,4 @@
import React from "react";
// lucide icons
import { Check, ChevronDown, ChevronUp } from "lucide-react";
// components
import { FilterHeader } from "../helpers/filter-header";
import { FilterOption } from "../helpers/filter-option";
@ -12,7 +10,7 @@ import { RootStore } from "store/root";
export const FilterStartDate = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -1,6 +1,4 @@
import React from "react";
// lucide icons
import { Check, ChevronDown, ChevronUp } from "lucide-react";
import {
StateGroupBacklogIcon,
StateGroupCancelledIcon,
@ -85,7 +83,7 @@ export const StateGroupIcons = ({
export const FilterStateGroup = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -1,6 +1,4 @@
import React from "react";
// lucide icons
import { Check, ChevronDown, ChevronUp } from "lucide-react";
// components
import { StateGroupIcons } from "./state-group";
import { FilterHeader } from "../helpers/filter-header";
@ -15,7 +13,7 @@ import { issueStateGroupKeys } from "store/issue-views/issue_data";
export const FilterState = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -1,6 +1,5 @@
import React from "react";
// lucide icons
import { Check, ChevronDown, ChevronUp } from "lucide-react";
// components
import { FilterHeader } from "../helpers/filter-header";
import { FilterOption } from "../helpers/filter-option";
@ -12,7 +11,7 @@ import { RootStore } from "store/root";
export const FilterTargetDate = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueStore } = store;
const { issueFilters: issueFilterStore } = store;
const [previewEnabled, setPreviewEnabled] = React.useState(true);

View File

@ -2,7 +2,7 @@
import { Plus } from "lucide-react";
export const IssueHeader = () => (
<div className="relative flex flex-colw-full h-full gap-1">
<div className="relative flex items-center w-full h-full gap-1">
{/* default layout */}
<div className=" border border-red-500 flex-shrink-0 w-[24px] h-[24px] flex justify-center items-center">
I

View File

@ -12,7 +12,7 @@ import { RootStore } from "store/root";
export const IssueKanBanViewRoot = observer(() => {
const store: RootStore = useMobxStore();
const { issueFilters: issueFilterStore, issueView: issueViewStore } = store;
const { issueView: issueViewStore } = store;
const onDragEnd = (result: any) => {
if (!result) return;