diff --git a/src/shared/prop-types/ChatProps.js b/src/shared/prop-types/ChatProps.js new file mode 100644 index 0000000..36896a0 --- /dev/null +++ b/src/shared/prop-types/ChatProps.js @@ -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); diff --git a/src/shared/prop-types/EmailProps.js b/src/shared/prop-types/EmailProps.js new file mode 100644 index 0000000..6879b09 --- /dev/null +++ b/src/shared/prop-types/EmailProps.js @@ -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), +}); diff --git a/src/shared/prop-types/ReducerProps.js b/src/shared/prop-types/ReducerProps.js new file mode 100644 index 0000000..a8640e6 --- /dev/null +++ b/src/shared/prop-types/ReducerProps.js @@ -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, +}); diff --git a/src/shared/prop-types/TablesProps.js b/src/shared/prop-types/TablesProps.js new file mode 100644 index 0000000..69be970 --- /dev/null +++ b/src/shared/prop-types/TablesProps.js @@ -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);