-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing className in HOC components
- Loading branch information
1 parent
bd2ddaa
commit 707ff23
Showing
4 changed files
with
65 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
export interface LinkProps { | ||
/** String that matched the regex */ | ||
match: string; | ||
/** Key to be used when looping matches */ | ||
key: number; | ||
/** Optional class which is passed to the linked component */ | ||
className?: string; | ||
} | ||
|
||
export interface HOCLinkProps { | ||
/** Optional class which is passed to the linked component */ | ||
className?: string; | ||
} | ||
|
||
export interface JiraLinkProps extends LinkProps { | ||
/** Jira base url */ | ||
domain: string; | ||
} | ||
|
||
export interface JiraHOCLinkProps extends HOCLinkProps { | ||
/** Jira base url */ | ||
domain: string; | ||
} | ||
|
||
/** | ||
* Function receives matched string and key to be used for loop, must return a React component | ||
*/ | ||
export type Component = (match: string, key: number) => JSX.Element; |