Skip to content

Commit

Permalink
Adcionado a função de refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Sep 15, 2022
1 parent 5e66d00 commit 199ba21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/pages/Settings/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from "react";
import openSocket from "socket.io-client";
import { useHistory } from "react-router-dom";

import { makeStyles, withStyles } from "@material-ui/core/styles";
import Paper from "@material-ui/core/Paper";
Expand Down Expand Up @@ -95,6 +96,7 @@ const IOSSwitch = withStyles((theme) => ({

const Settings = () => {
const classes = useStyles();
const history = useHistory();

const [settings, setSettings] = useState([]);

Expand Down Expand Up @@ -138,6 +140,7 @@ const Settings = () => {
value: selectedValue,
});
toast.success(i18n.t("settings.success"));
history.go(0);
} catch (err) {
toastError(err);
}
Expand Down

0 comments on commit 199ba21

Please sign in to comment.