* added Logout documentation * updated type and schema * updated logout component, route and inactivityRoute references * added custom Logout component into test admin instance * fixed windows path management * added dotenv usage * added check on testSuiteDir and provided more meaningful error message * fixed object destructure * updated from logout.route to logoutRoute * extracted getSanitizedLogoutRoutes method * added unit tests * updated references * updated doc * reviewed casing and added defaults * updated usage * restored workers previous value * fixed config validation * updated docs and schema * updated reference to logoutRoute and inactivityRoute * updated test ref Co-authored-by: Alberto Maghini (MSC Technology Italia) <alberto.maghini@msc.com> Co-authored-by: Alberto Maghini <alberto@newesis.com>
24 lines
451 B
TypeScript
24 lines
451 B
TypeScript
import React from 'react';
|
|
import { useConfig } from '../../../../src/admin/components/utilities/Config';
|
|
import LogOut from '../../../../src/admin/components/icons/LogOut';
|
|
|
|
|
|
const Logout: React.FC = () => {
|
|
const config = useConfig();
|
|
const {
|
|
routes: {
|
|
admin,
|
|
},
|
|
admin: {
|
|
logoutRoute
|
|
},
|
|
} = config;
|
|
return (
|
|
<a href={`${admin}${logoutRoute}#custom`}>
|
|
<LogOut />
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default Logout;
|