I'm currently working on a react app that integrates AWS Amplify. A great tool so far but I find it hard to customize components. Especially I would like to style the AmplifySignOut-component.
According to the documentation (see last paragraph on page) passing a theme to the withAuthenticator-component does not work like this anymore. I can't figure out how to pass a theme to the AmplifySignOut-component that overwrites the default layout for the button that is created. So far, I think that this is the default layout but I'm not 100% sure.
It would be great, if someone could point me in the right direction here :)
Im using the component like this (not working):
import React from 'react'
import { NavLink } from "react-router-dom";
import './Navbar.css'
import { AmplifySignOut } from '@aws-amplify/ui-react';
function Navbar(props) {
const MyTheme = {
NavButton: { 'fontWeight': '10' },
}
return (
<div className="navbar">
<NavLink exact to="/">Home</NavLink>
<NavLink to="/pdservice">Drucker & Netzwerk</NavLink>
<AmplifySignOut theme={MyTheme}/>
</div>
)
}
export default Navbar;
Best Regards