I am trying to align the text in the center by using <Typography align="center"> for the footer but it is not working. How can I align the text to center?
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import CssBaseline from "@material-ui/core/CssBaseline";
import Toolbar from "@material-ui/core/Toolbar";
import Typography from "@material-ui/core/Typography";
const useStyles = makeStyles(theme => ({
appBar: {
top: "auto",
bottom: 0
}
}));
export default function Footer() {
const classes = useStyles();
return (
<React.Fragment>
<CssBaseline />
<AppBar color="primary" className={classes.appBar}>
<Toolbar>
<Typography align="center">Visit again</Typography>
</Toolbar>
</AppBar>
</React.Fragment>
);
}

