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 Sidebar from './components/Sidebar';
|
||||||
import {ServicesProvider} from './components/providers/ServiceProvider';
|
import {ServicesProvider} from './components/providers/ServiceProvider';
|
||||||
import {Toaster} from 'react-hot-toast';
|
import {Toaster} from 'react-hot-toast';
|
||||||
import {showToast} from './admin-x-ds/global/Toast';
|
|
||||||
|
|
||||||
interface AppProps {
|
interface AppProps {
|
||||||
ghostVersion: string;
|
ghostVersion: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function App({ghostVersion}: AppProps) {
|
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 (
|
return (
|
||||||
<ServicesProvider ghostVersion={ghostVersion}>
|
<ServicesProvider ghostVersion={ghostVersion}>
|
||||||
<DataProvider>
|
<DataProvider>
|
||||||
<div className="admin-x-settings">
|
<div className="admin-x-settings">
|
||||||
<Toaster />
|
<Toaster />
|
||||||
<button type='button' onClick={notify}>Make me a toast</button>
|
|
||||||
<NiceModal.Provider>
|
<NiceModal.Provider>
|
||||||
<div className='fixed left-6 top-4'>
|
<div className='fixed left-6 top-4'>
|
||||||
<Button label='← Done' link={true} onClick={() => window.history.back()} />
|
<Button label='← Done' link={true} onClick={() => window.history.back()} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue