Skip to content

Commit

Permalink
type bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kursatsmsek committed Jun 23, 2022
1 parent 1f5e0f1 commit 6066d8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Button/Button.tsx
Expand Up @@ -11,13 +11,12 @@ const Button: React.FC<IButtonProps> = ({
color = 'white',
className = null,
buttonRef = null,
title = null,
...props
}) => {
return (
<button
ref={buttonRef}
title={title}
title={props.title}
className={classNames('rce-button', type, className)}
style={{
backgroundColor: backgroundColor,
Expand Down
2 changes: 1 addition & 1 deletion src/Dropdown/Dropdown.tsx
Expand Up @@ -5,7 +5,7 @@ import Button from '../Button/Button'
import { IDropdownProps, IDropdownItemType } from '../type'

const Dropdown: React.FC<IDropdownProps> = ({ animationPosition = 'nortwest', animationType = 'default', ...props }) => {
const [show, setShow] = useState<boolean>(undefined)
const [show, setShow] = useState<boolean | undefined>(undefined)

const onBlur = () => {
if (show === true) setShow(false)
Expand Down
5 changes: 2 additions & 3 deletions src/Input/Input.tsx
Expand Up @@ -14,7 +14,6 @@ const Input: React.FC<IInputProps> = ({
minHeight = 25,
maxHeight = 200,
autoHeight = true,
inputStyle = null,
referance = null,
maxlength = null,
onMaxLengthExceed = null,
Expand Down Expand Up @@ -78,7 +77,7 @@ const Input: React.FC<IInputProps> = ({
className={classNames('rce-input')}
placeholder={placeholder}
defaultValue={defaultValue}
style={inputStyle}
style={props.inputStyle}
onChange={onChangeEvent}
onCopy={props.onCopy}
onCut={props.onCut}
Expand All @@ -98,7 +97,7 @@ const Input: React.FC<IInputProps> = ({
className={classNames('rce-input', 'rce-input-textarea')}
placeholder={placeholder}
defaultValue={defaultValue}
style={inputStyle}
style={props.inputStyle}
onChange={onChangeEvent}
onCopy={props.onCopy}
onCut={props.onCut}
Expand Down
3 changes: 1 addition & 2 deletions src/MessageList/MessageList.tsx
Expand Up @@ -13,7 +13,6 @@ const MessageList: FC<IMessageListProps> = ({
lockable = false,
toBottomHeight = 300,
downButton = true,
downButtonBadge = null,
...props
}) => {
const [scrollBottom, setScrollBottom] = useState(0)
Expand Down Expand Up @@ -172,7 +171,7 @@ const MessageList: FC<IMessageListProps> = ({
{downButton === true && _downButton && toBottomHeight !== '100%' && (
<div className='rce-mlist-down-button' onClick={toBottom}>
<FaChevronDown />
{downButtonBadge > 0 && <span className='rce-mlist-down-button--badge'>{downButtonBadge.toString()}</span>}
{props.downButtonBadge > 0 && <span className='rce-mlist-down-button--badge'>{props.downButtonBadge.toString()}</span>}
</div>
)}
</div>
Expand Down

0 comments on commit 6066d8f

Please sign in to comment.