refactor(client): submit function out of jsx

1 job for warnings-part2
Status Name Job ID Coverage
  Run Pipeline
passed coko-pipeline