1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-15 13:36:35 +02:00

Shared lint configs

This commit is contained in:
Maciej Lenartowicz
2019-11-13 10:11:11 +00:00
parent 13ff8221ca
commit 6e02f1d194
10 changed files with 80 additions and 93 deletions

View File

@ -12,7 +12,6 @@ import { Input } from "./Input";
export const EmailInput = ({ ...props }) => <Input type="email" {...props} />;
EmailInput.propTypes = {
/** Field label. */
label: PropTypes.string.isRequired,

View File

@ -37,7 +37,6 @@ export function Modal({ shown, setShown, children }) {
};
}, [setShown]);
return (
<Portal containerId="modal-container">
<div className={`modal fade ${shown ? "show" : ""}`} role="dialog">

View File

@ -11,7 +11,6 @@ import { useUID } from "react-uid";
import { formFieldsSize } from "./constants";
RadioSet.propTypes = {
/** Name attribute of the input HTML tag. */
name: PropTypes.string.isRequired,

View File

@ -9,7 +9,6 @@ import React from "react";
import PropTypes from "prop-types";
import { useUID } from "react-uid";
Select.propTypes = {
/** Select field Label. */
label: PropTypes.string.isRequired,

View File

@ -10,10 +10,8 @@ import PropTypes from "prop-types";
import { Input } from "./Input";
export const TextInput = ({ ...props }) => <Input type="text" {...props} />;
TextInput.propTypes = {
/** Field label. */
label: PropTypes.string.isRequired,