Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/@buffetjs/core/src/components/Option/index.js
Назад
import React from 'react'; import PropTypes from 'prop-types'; import { Remove } from '@buffetjs/icons'; import { Option as Wrapper } from '@buffetjs/styles'; import { upperFirst } from 'lodash'; import RemoveButton from './RemoveButton'; function Filter({ label, onClick, ...rest }) { const content = typeof label === 'string' ? <span>{upperFirst(label)}</span> : label; return ( <Wrapper {...rest}> {content} <RemoveButton type="button" onClick={onClick}> <Remove width="11px" height="11px" fill="#007eff" /> </RemoveButton> </Wrapper> ); } Filter.defaultProps = { label: '', onClick: () => {}, }; Filter.propTypes = { label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), onClick: PropTypes.func, }; export default Filter;
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка