34 lines
722 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from 'react';
import { IonApp, IonRouterOutlet } from '@ionic/react';
import { IonReactRouter } from '@ionic/react-router';
import AppRoutes from './AppRoutes';
import './index.css'
import '@ionic/react/css/core.css';
import Header from './components/Header';
import Footer from './components/Footer';
const App: React.FC = () => (
<IonApp>
<IonReactRouter>
<div className='flex flex-col h-screen bg-green-300'>
<Header />
{/* Контент с отступом равным высоте Header */}
<div className='flex-1 overflow-auto'>
<IonRouterOutlet>
<AppRoutes />
</IonRouterOutlet>
</div>
<Footer />
</div>
</IonReactRouter>
</IonApp>
);
export default App;