Remove defaultProps  for react 18
React 18 give warning as following:

Warning: Checkboard: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.