/
vshmidt
/
label-studio
Обзор
Документация
Войти
/
vshmidt
/
label-studio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
web/libs/editor/src/components/TextNode/TextNode.jsx
25 строк
629 B
yyassi-heartex
chore: OPTIC-1154: biome linting tweaks (#6425)
22 окт 2024, 23:22
Не верифицирован
22 окт 2024, 23:22
7ed55c6
Код
Авторство
О чём код?
import { Component } from "react"; import { PropTypes } from "prop-types"; export default class TextNode extends Component { render() { return ( <span data-position={this.props.position} data-overlap={this.props.overlap} key={this.props.keyNode ? this.props.keyNode : null} style={this.props.style} > {this.props.children} </span> ); } } TextNode.propTypes = { position: PropTypes.number, overlap: PropTypes.string, key: PropTypes.string, style: PropTypes.object, children: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired, };