From 91aaa860f460ea271386d4f9652fbdc8bee094e9 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Fri, 19 Apr 2019 12:03:36 +0300 Subject: [PATCH] color proptype defined to Loader --- src/common/Loader/Loader.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/common/Loader/Loader.js b/src/common/Loader/Loader.js index 1510d58dd..956ee4368 100644 --- a/src/common/Loader/Loader.js +++ b/src/common/Loader/Loader.js @@ -1,5 +1,8 @@ const React = require('react'); +const PropTypes = require('prop-types'); +const colors = require('stremio-colors'); +// TODO: implement it with polygon and clip-path const Loader = ({ fill, children, ...props }) => ( @@ -50,4 +53,12 @@ const Loader = ({ fill, children, ...props }) => ( ); +Loader.propTypes = { + fill: PropTypes.string.isRequired +}; + +Loader.defaultProps = { + fill: colors.surfacelighter80 +}; + module.exports = Loader;