| @@ -0,0 +1,27 @@ | |||||
| import PropTypes from 'prop-types'; | |||||
| const { | |||||
| string, arrayOf, shape, instanceOf, | |||||
| } = PropTypes; | |||||
| export const CurrentUserProps = shape({ | |||||
| avatar: string, | |||||
| name: string, | |||||
| userName: string, | |||||
| }); | |||||
| export const MessageProps = shape({ | |||||
| userName: string, | |||||
| message: string, | |||||
| date: instanceOf(Date), | |||||
| }); | |||||
| export const ContactProps = shape({ | |||||
| avatar: string, | |||||
| name: string, | |||||
| userName: string, | |||||
| post: string, | |||||
| messages: arrayOf(MessageProps), | |||||
| }); | |||||
| export const ContactsProps = arrayOf(ContactProps); | |||||
| @@ -0,0 +1,33 @@ | |||||
| import PropTypes from 'prop-types'; | |||||
| const { | |||||
| string, arrayOf, shape, bool, element, | |||||
| } = PropTypes; | |||||
| export const EmailProps = shape({ | |||||
| name: string, | |||||
| subject: string, | |||||
| preview: string, | |||||
| attach: bool, | |||||
| favorite: bool, | |||||
| time: string, | |||||
| unread: bool, | |||||
| }); | |||||
| export const EmailsProps = arrayOf(EmailProps); | |||||
| export const EmailAttachmentProps = shape({ | |||||
| name: string, | |||||
| size: string, | |||||
| link: string, | |||||
| }); | |||||
| export const EmailBodyProps = shape({ | |||||
| ava: string, | |||||
| name: string, | |||||
| email: string, | |||||
| favorite: bool, | |||||
| time: string, | |||||
| body: element, | |||||
| attachment: arrayOf(EmailAttachmentProps), | |||||
| }); | |||||
| @@ -0,0 +1,20 @@ | |||||
| import PropTypes from 'prop-types'; | |||||
| const { | |||||
| string, bool, shape, | |||||
| } = PropTypes; | |||||
| export const CustomizerProps = shape({ | |||||
| squaredCorners: bool, | |||||
| withBoxShadow: bool, | |||||
| topNavigation: bool, | |||||
| }); | |||||
| export const SidebarProps = shape({ | |||||
| show: PropTypes.bool, | |||||
| collapse: PropTypes.bool, | |||||
| }); | |||||
| export const ThemeProps = shape({ | |||||
| className: string, | |||||
| }); | |||||
| @@ -0,0 +1,27 @@ | |||||
| import PropTypes from 'prop-types'; | |||||
| const { | |||||
| string, shape, arrayOf, number, | |||||
| } = PropTypes; | |||||
| export const CryptoRowProps = shape({ | |||||
| name: string, | |||||
| market_cap: string, | |||||
| price: string, | |||||
| volume: string, | |||||
| supply: string, | |||||
| change: string, | |||||
| chart: string, | |||||
| }); | |||||
| export const CryptoTableProps = arrayOf(CryptoRowProps); | |||||
| export const NewOrderRowProps = shape({ | |||||
| title: string, | |||||
| quantity: number, | |||||
| sold: number, | |||||
| total: string, | |||||
| img: string, | |||||
| }); | |||||
| export const NewOrderTableProps = arrayOf(NewOrderRowProps); | |||||