Skip to content

Commit

Permalink
fix: add onOk handler to <CustomError /> in <Staged />
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevries3133 committed Mar 18, 2021
1 parent 749b2b5 commit 711a765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const custom_error = (props) => {
custom_error.propTypes = {
header: PropTypes.string,
message: PropTypes.array.isRequired,
onOk: PropTypes.func.isRequired,
};

custom_error.defaultProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const staged = (props) => {
`long. Your title is currently ${props.titleValue.length} ` +
`characters long.`,
]}
onOk={() => setBlanket(null)}
/>
);
} else {
Expand Down

0 comments on commit 711a765

Please sign in to comment.