Files
gitbook/packages/gitbook-plugin-sharing/src/optionsShape.js
T
Nicolas Gaborit 3aea3e5d88 Adapt plugin sharing (#1553)
* Reuse old package config

* Add plugin config shape

* Add ButtonGroup to core components

* List all sharing sites

* Displaying buttons from config

* First iteration of Dropdown component (need CSS)

* Using Dropdown for sharing button

* Create HotKeys component

* Move Backdrop to its own file

* Trying a cleaner API for Dropdown

* Add README.md

* livereload: Add missing gitbook-plugin dependency

* sharing: Now use Immutable state

* sharing: Adapt quickly to new Dropdown

* sharing: Fix sharing from dropdown
2016-10-13 12:56:46 +02:00

21 lines
350 B
JavaScript

const {
bool,
arrayOf,
oneOf,
shape
} = require('gitbook-core').React.PropTypes;
const { ALL } = require('./SITES');
const optionsShape = shape({
facebook: bool,
twitter: bool,
google: bool,
weibo: bool,
instapaper: bool,
vk: bool,
all: arrayOf(oneOf(ALL)).isRequired
});
module.exports = optionsShape;