-
Notifications
You must be signed in to change notification settings - Fork 2
[FRNT-438] rewite select with list and popover #125
base: master
Are you sure you want to change the base?
[FRNT-438] rewite select with list and popover #125
Conversation
cdebeee
to
b7586c5
Compare
668ceb0
to
6cb2433
Compare
onClick?: React.EventHandler<React.SyntheticEvent>; | ||
role?: string; |
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.
suggestion: может стоит заменить на что-то вроде
type ListElementProps = React.HTMLAttributes<HTMLLIElement> & { /* our props */ }
И все оставшиеся пропсы в итоге спредить в элемент
focus?: boolean; | ||
} | ||
|
||
const UploadAreaBase: React.FC<UploadAreaProps & Priority> = ({ |
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.
thought: Может стоит это выносить в UploadAreaProps (через intersection)? Как минимум если будем экспортировать UploadAreaProps, будет не очень правильно с типами
@@ -120,6 +120,7 @@ | |||
version "7.14.5" | |||
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.14.5.tgz#848d7b9f031caca9d0cd0af01b063f226f52d785" | |||
integrity sha512-y3rlP+/G25OIX3mYKKIOlQRcqj7YgrvHxOLbVmyLJ9bPmi5ttvUmpydVjcFjZphOktWuA7ovbx91ECloWTfjIA== | |||
<<<<<<< HEAD |
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.
nitpick(blocking): у тебя тут что-то осталось из конфликта)
@@ -341,12 +369,21 @@ | |||
version "7.14.6" | |||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.6.tgz#d85cc68ca3cac84eae384c06f032921f5227f4b2" | |||
integrity sha512-oG0ej7efjEXxb4UgE+klVx+3j4MVo+A2vCzm7OUN4CLo6WhQ+vSOD2yJ8m7B+DghObxtLxt3EfgMWpq+AsWehQ== | |||
<<<<<<< HEAD |
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.
nitpick(blocking): и еще что-то
@@ -513,6 +550,17 @@ | |||
"@babel/helper-create-class-features-plugin" "^7.14.5" | |||
"@babel/helper-plugin-utils" "^7.14.5" | |||
"@babel/plugin-syntax-private-property-in-object" "^7.14.5" | |||
<<<<<<< HEAD |
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.
nitpick(blocking): еще
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.
.
} | ||
|
||
const camelCase = (string: string) => string.charAt(0).toLowerCase() + string.slice(1); | ||
|
||
const hasHandler = (handler: Handler, key: string) => { | ||
return Object.prototype.hasOwnProperty.call(handler, key); |
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.
Это для фикса возможной проблемы, что там не объект прилетит (вообще как бы практически не важно, но закрыть варнинг)
No description provided.