fix style issue
This commit is contained in:
19
src/components/airport.tsx
Normal file
19
src/components/airport.tsx
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import React, { useState } from 'react';
|
||||||
|
import { TabView, TabPanel } from 'primereact/tabview';
|
||||||
|
|
||||||
|
export const Airport: React.FC = () => {
|
||||||
|
const [activeIndex, setActiveIndex] = useState<number>(0);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<TabView activeIndex={activeIndex} onTabChange={(event) => setActiveIndex(event.index)} className='p-3'>
|
||||||
|
<TabPanel header='Create airport'>
|
||||||
|
CREATE AIRPORT
|
||||||
|
</TabPanel>
|
||||||
|
<TabPanel header='Manage airport'>
|
||||||
|
MANAGE AIRPORT
|
||||||
|
</TabPanel>
|
||||||
|
</TabView>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user