feat(ui): move to React 18 and base for using shadcn/ui (#4174)
Co-authored-by: IbrahimCSAE <ibrahim.mdev@gmail.com>
This commit is contained in:
1 parent
72b63dcd6a
commit
70f2c797f4
153 files changed
+2973
-2043
No files matched your search
@@ -9,7 +9,7 @@ const DELAY_TO_SHOW = 1000;
|
||||
const DELAY_TO_HIDE = 10; // it needs at least a little delay to prevent tooltip to suddenly hide
|
||||
const DELAY_TO_HIDE_AFTER_COPYING = 1000;
|
||||
|
||||
const TooltipClipboard = ({ children, text }) => {
|
||||
const TooltipClipboard = ({ children, text = '' }) => {
|
||||
const { t } = useTranslation('TooltipClipboard');
|
||||
|
||||
const [isActive, setIsActive] = useState(false);
|
||||
@@ -158,10 +158,6 @@ const TooltipClipboard = ({ children, text }) => {
|
||||
);
|
||||
};
|
||||
|
||||
TooltipClipboard.defaultProps = {
|
||||
text: '',
|
||||
};
|
||||
|
||||
TooltipClipboard.propTypes = {
|
||||
text: PropTypes.string,
|
||||
children: PropTypes.node.isRequired,
|
||||
|
||||
Reference in new issue
Block a user