remove derivedStateFromProps

This commit is contained in:
SpikeHD
2022-06-03 17:26:12 -07:00
parent 1ac4fd5a63
commit bbff2e51c7
2 changed files with 2 additions and 6 deletions

View File

@@ -30,10 +30,6 @@ export default class TextInput extends React.Component<IProps, IState> {
} }
} }
static getDerivedStateFromProps(props: IProps, state: IState) {
return { value: props.value || '' }
}
async componentDidMount() { async componentDidMount() {
if (this.props.initalValue) { if (this.props.initalValue) {
this.setState({ this.setState({

View File

@@ -65,7 +65,7 @@
scrollbar-width: none; scrollbar-width: none;
} }
.NewsContent tbody::-webkit-scrollbar { .NewsContent tbody::-webkit-scrollbar {
display: none; display: none;
} }
@@ -94,4 +94,4 @@
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
margin-bottom: 5px; margin-bottom: 5px;
} }