-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: changed proptype from string
/IconSubComponentProps
to SubIcon
#2026
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,12 @@ import React, { FC, forwardRef, ReactElement, useRef } from "react"; | |
import { noop as NOOP } from "lodash-es"; | ||
import useMergeRef from "../../../hooks/useMergeRef"; | ||
import { getStyle } from "../../../helpers/typesciptCssModulesHelper"; | ||
import Icon, { IconSubComponentProps } from "../../Icon/Icon"; | ||
import Icon from "../../Icon/Icon"; | ||
import VibeComponentProps from "../../../types/VibeComponentProps"; | ||
import { IconType } from "../../Icon/IconConstants"; | ||
import { ComponentDefaultTestId, getTestId } from "../../../tests/test-ids-utils"; | ||
import styles from "./Tab.module.scss"; | ||
import { SubIcon } from "src/types"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure @YossiSaadi, allow me some time I'll raise another PR. |
||
|
||
export interface TabProps extends VibeComponentProps { | ||
/** | ||
|
@@ -22,7 +23,7 @@ export interface TabProps extends VibeComponentProps { | |
disabled?: boolean; | ||
active?: boolean; | ||
focus?: boolean; | ||
icon?: string | React.FunctionComponent<IconSubComponentProps> | null; | ||
icon?: SubIcon; | ||
iconType?: IconType; | ||
iconSide?: string; | ||
onClick?: (value: number) => void; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how it behaves
Can you, for the meantime, change it to a relative path? same as other imports in the file? (
../../../types
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure @YossiSaadi, allow me some time I'll raise another PR.