MPHBModule.jsx in MotoPress Hotel Booking for Divi trunk, at divi-4/includes/components/MPHBModule.jsx
| 1 | import React from 'react'; |
| 2 | |
| 3 | const MPHBModule = ( { |
| 4 | name, |
| 5 | description = '' |
| 6 | } ) => ( |
| 7 | <div> |
| 8 | <div style={ |
| 9 | { |
| 10 | 'background': '#f6f7f7', |
| 11 | 'borderRadius': '10px', |
| 12 | 'padding': '3em 1em' |
| 13 | } |
| 14 | }> |
| 15 | <p |
| 16 | style={ |
| 17 | { |
| 18 | 'textAlign': 'center', |
| 19 | 'fontWeight': '700', |
| 20 | 'fontSize': '1.5em' |
| 21 | } |
| 22 | } |
| 23 | >{ name }</p> |
| 24 | { description && <p |
| 25 | style={ |
| 26 | { |
| 27 | 'textAlign': 'center' |
| 28 | } |
| 29 | } |
| 30 | >{ description }</p> } |
| 31 | </div> |
| 32 | </div> |
| 33 | ); |
| 34 | |
| 35 | export default MPHBModule; |