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:
parent
250312c82b
commit
e0dca2e0c7
1 changed files with 0 additions and 15 deletions
|
@ -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='← Done' link={true} onClick={() => window.history.back()} />
|
||||
|
|
Loading…
Add table
Reference in a new issue