Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Allow changing height of PullSecretInputCard
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad committed Jan 14, 2022
1 parent 0d03860 commit c184101
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@code-ready/crc-react-components",
"version": "0.9.2",
"version": "0.9.3",
"author": {
"name": "Gerard Braad",
"email": "[email protected]"
Expand Down
14 changes: 12 additions & 2 deletions src/components/PullSecretInputCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ export default class PullSecretInputCard extends React.Component {
}

render() {
const style = {
resize: "none",
height: this.props.height
};

return (
<Card isLarge isPlain>
<CardTitle>Please provide a pull secret</CardTitle>
<CardBody>
<TextArea id="pullsecretEntry"
style={{height: "240px", resize: "none"}} autoResize={false}
style={style} autoResize={false}
value={this.props.pullsecret} onChange={this.props.onChanged} />
</CardBody>
<CardFooter>
Expand All @@ -46,5 +51,10 @@ export default class PullSecretInputCard extends React.Component {

PullSecretInputCard.propTypes = {
pullsecret: PropTypes.string,
height: PropTypes.string,
onChanged: PropTypes.func
}
}

PullSecretInputCard.defaultProps = {
height: "240px"
};

0 comments on commit c184101

Please sign in to comment.