This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/website/components/FunctionPage/FunctionTabs.jsx

17 lines
351 B
React
Raw Permalink Normal View History

2020-08-03 12:04:07 +02:00
import SwipeableViews from 'react-swipeable-views'
2020-08-03 14:14:45 +02:00
const FunctionTabs = props => {
2020-08-03 12:04:07 +02:00
return (
<div className='container-fluid'>
2020-08-03 14:14:45 +02:00
<SwipeableViews
onChangeIndex={index => props.setSlideIndex(index)}
index={props.slideIndex}
>
2020-08-03 12:04:07 +02:00
{props.children}
</SwipeableViews>
</div>
)
}
2020-08-03 12:04:07 +02:00
export default FunctionTabs