mirror of https://github.com/vector-im/riot-web
Added LayoutPropType
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
dea1faecfe
commit
20193ad7fe
|
@ -14,8 +14,13 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
/* TODO: This should be later reworked into something more generic */
|
/* TODO: This should be later reworked into something more generic */
|
||||||
export enum Layout {
|
export enum Layout {
|
||||||
IRC = "irc",
|
IRC = "irc",
|
||||||
Group = "group"
|
Group = "group"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We need this because multiple components are still using JavaScript */
|
||||||
|
export const LayoutPropType = PropTypes.oneOf(Object.values(Layout));
|
||||||
|
|
Loading…
Reference in New Issue