forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from likhith-deriv/likhith/74994/migrated-clipb…
…oard-component-to-tsx likhith/migrated clipboard component to tsx
- Loading branch information
Showing
9 changed files
with
96 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Clipboard from './clipboard.jsx'; | ||
import Clipboard from './clipboard'; | ||
import './clipboard.scss'; | ||
|
||
export default Clipboard; |
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
2 changes: 1 addition & 1 deletion
2
...omponents/src/components/popover/index.js → ...omponents/src/components/popover/index.ts
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,4 +1,4 @@ | ||
import Popover from './popover.jsx'; | ||
import Popover from './popover'; | ||
import './popover.scss'; | ||
|
||
export default Popover; |
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,4 +1,5 @@ | ||
import { TIconsManifest, TIconProps } from './icons.types'; | ||
import { TAccordionProps, TAccordionItem } from './accordion.types'; | ||
import { TPopoverProps } from './popover.types'; | ||
|
||
export type { TIconsManifest, TIconProps, TAccordionProps, TAccordionItem }; | ||
export type { TIconsManifest, TIconProps, TAccordionProps, TAccordionItem, TPopoverProps }; |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { Position } from 'react-tiny-popover'; | ||
|
||
export type TPopoverProps = { | ||
alignment: Position; | ||
className?: string; | ||
classNameBubble?: string; | ||
classNameTarget?: string; | ||
classNameTargetIcon?: string; | ||
counter?: number; | ||
disable_message_icon?: boolean; | ||
disable_target_icon?: boolean; | ||
has_error?: boolean; | ||
icon: 'info' | 'question' | 'dot' | 'counter'; | ||
id: string; | ||
is_bubble_hover_enabled?: boolean; | ||
is_open?: boolean; | ||
relative_render?: boolean; | ||
margin: number; | ||
message: React.ReactNode; | ||
onBubbleOpen: () => void; | ||
onBubbleClose: () => void; | ||
onClick: () => void; | ||
should_disable_pointer_events?: boolean; | ||
should_show_cursor?: boolean; | ||
zIndex: string; | ||
window_border: number; | ||
}; |