Skip to content

Commit

Permalink
Moving Indicator from declarations to the component (#14)
Browse files Browse the repository at this point in the history
* Making the icon on the header configurable

* Moving Indicator from declarations to the component
  • Loading branch information
Daphne210 authored Oct 16, 2023
1 parent c28bbf5 commit 9c8b530
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
15 changes: 15 additions & 0 deletions src/components/item-selector/item-selector.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ import { Panel } from "../panel/panel.component";
import { ArrowLeft, ArrowRight } from "@carbon/react/icons";
import { Button } from "@carbon/react";

type SideNavProps = object;

type Indicator = {
id: string;
label: string;
type?: string;
attributes?: Array<IndicatorItem>;
};

type IndicatorItem = {
id: string;
label: string;
type?: string;
};

export interface ItemSelectorProps {
availableParameters: any[];
selectedParameters: any[];
Expand Down
15 changes: 0 additions & 15 deletions src/declarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,3 @@ declare module "@carbon/react";
declare module "*.css";
declare module "*.scss";
declare module "*.png";

declare type SideNavProps = object;

declare type Indicator = {
id: string;
label: string;
type?: string;
attributes?: Array<IndicatorItem>;
};

declare type IndicatorItem = {
id: string;
label: string;
type?: string;
};

0 comments on commit 9c8b530

Please sign in to comment.