The-Bugger-Ducks / owl-partners-mobile

Mobile do projeto "Owl Partners" (5º DSM - 2023, FATEC Profº Jessen Vidal - SJC)
1 stars 0 forks source link

Edit meeting comments #54

Closed MariaGabrielaReis closed 1 year ago

MariaGabrielaReis commented 1 year ago

Documentação

Foi usado a classe para agrupar as requisições que envolvem as reuniões, onde existe uma função para editar uma anotação de uma reunião. Esse put foi feito consumindo a rota do backend através dessa função.

Tecnologias: React Native, Expo, Axios, Styled Components

https://user-images.githubusercontent.com/69374340/233806091-429b9d5c-535e-4814-8f26-4eb6276186db.mp4

Requisição

 async updateMeetingComment(commentId: string, comment: string) {
    try {
      await api.put(MEETING_ENDPOINTS.UPDATE_COMMENT + commentId, { comment });
    } catch (error) {
      alertError(error, "Não foi possível atualizar o comentário :(");
    }
  }