добавлена форма записи, но инпуты не до конца стилизованы
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
import React from "react";
|
||||
|
||||
type TProps = {
|
||||
onClick: () => void
|
||||
textButton: string
|
||||
onClick?: () => void
|
||||
type?: 'submit' | 'button'
|
||||
width?: '100%' | string
|
||||
}
|
||||
|
||||
export const PinkButton:React.FC<TProps> = React.memo((props) => {
|
||||
return <button className="main-part-text-button" onClick={() => props.onClick()}>{props.textButton}</button>
|
||||
return <button
|
||||
style={{width: props.width ? props.width : ''}}
|
||||
className="main-part-text-button"
|
||||
onClick={() => props?.onClick()}
|
||||
type={props.type ? props.type : 'button'}
|
||||
>
|
||||
{props.textButton}
|
||||
</button>
|
||||
})
|
||||
Reference in New Issue
Block a user