0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Cleanup test code from AdminX

refs. https://github.com/TryGhost/Team/issues/3351
This commit is contained in:
Peter Zimon 2023-06-05 17:33:20 +02:00
parent 250312c82b
commit e0dca2e0c7

View file

@ -6,32 +6,17 @@ import Settings from './components/Settings';
import Sidebar from './components/Sidebar';
import {ServicesProvider} from './components/providers/ServiceProvider';
import {Toaster} from 'react-hot-toast';
import {showToast} from './admin-x-ds/global/Toast';
interface AppProps {
ghostVersion: string;
}
function App({ghostVersion}: AppProps) {
// const notify = () => toast.success('Here is your toast.', {
// duration: 10000000,
// position: 'bottom-left'
// });
const notify = () => showToast({
message: 'Hello toast',
options: {
duration: 1000000,
position: 'bottom-left'
}
});
return (
<ServicesProvider ghostVersion={ghostVersion}>
<DataProvider>
<div className="admin-x-settings">
<Toaster />
<button type='button' onClick={notify}>Make me a toast</button>
<NiceModal.Provider>
<div className='fixed left-6 top-4'>
<Button label='&larr; Done' link={true} onClick={() => window.history.back()} />