mcarman před 4 roky
rodič
revize
86e184065a
4 změnil soubory, kde provedl 107 přidání a 0 odebrání
  1. +27
    -0
      src/shared/prop-types/ChatProps.js
  2. +33
    -0
      src/shared/prop-types/EmailProps.js
  3. +20
    -0
      src/shared/prop-types/ReducerProps.js
  4. +27
    -0
      src/shared/prop-types/TablesProps.js

+ 27
- 0
src/shared/prop-types/ChatProps.js Zobrazit soubor

@@ -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);

+ 33
- 0
src/shared/prop-types/EmailProps.js Zobrazit soubor

@@ -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),
});

+ 20
- 0
src/shared/prop-types/ReducerProps.js Zobrazit soubor

@@ -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,
});

+ 27
- 0
src/shared/prop-types/TablesProps.js Zobrazit soubor

@@ -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);

Načítá se…
Zrušit
Uložit