Remove 6 new files

This commit is contained in:
Romaric Mourgues
2023-04-20 14:37:00 +02:00
parent 4b08f656da
commit 34fcb0ce11
9 changed files with 17 additions and 383 deletions
@@ -1,54 +0,0 @@
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import Languages from '@features/global/services/languages-service';
import './input-with-button.scss';
import Icon from '@components/icon/icon.jsx';
import Input from './input.jsx';
export default class InputWithButton extends Component {
/*
props = {
value : "",
disabled : true|false
}
*/
constructor(props) {
super(props);
this.props = props;
this.state = {
i18n: Languages,
};
Languages.addListener(this);
this.inputElement = false;
}
componentWillUnmount() {
Languages.removeListener(this);
}
render() {
return (
<div className="inputWithButton">
<Input
className="medium full_width"
refInput={obj => {
this.inputElement = obj;
this.props.refInput && this.props.refInput();
}}
{...this.props}
/>
{!this.props.hideBtn && (
<div
className={'button button-icon ' + (this.props.color ? this.props.color : '')}
onClick={() => this.props.btnAction()}
>
<Icon type={this.props.icon} />
</div>
)}
</div>
);
}
}
@@ -1,29 +0,0 @@
.inputWithButton {
display: flex;
position: relative;
input.input {
padding-right: 50px;
}
.button-icon {
position: absolute;
height: 40px;
right: 0px;
box-sizing: border-box;
padding: 10px;
border-radius: 0px 4px 4px 0px;
border-left: solid 1px var(--grey-light);
font-size: 16px;
cursor: pointer;
}
.danger {
background-color: var(--grey-background);
color: var(--grey-dark);
}
.danger:hover {
transition: 0.5s;
background-color: var(--grey-light);
color: var(--red);
}
}