mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
Added LayoutPropType
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
dea1faecfe
commit
20193ad7fe
1 changed files with 5 additions and 0 deletions
|
@ -14,8 +14,13 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
/* TODO: This should be later reworked into something more generic */
|
||||
export enum Layout {
|
||||
IRC = "irc",
|
||||
Group = "group"
|
||||
}
|
||||
|
||||
/* We need this because multiple components are still using JavaScript */
|
||||
export const LayoutPropType = PropTypes.oneOf(Object.values(Layout));
|
||||
|
|
Loading…
Reference in a new issue