* change(ui): prefs project settings * change(api): projects settings redesign * change(api): projects settings redesign * change(ui): projects pagination
37 lines
1 KiB
TypeScript
37 lines
1 KiB
TypeScript
import React from 'react';
|
|
import ListingVisibility from './components/ListingVisibility';
|
|
import DefaultPlaying from './components/DefaultPlaying';
|
|
import DefaultTimezone from './components/DefaultTimezone';
|
|
import CaptureRate from './components/CaptureRate';
|
|
import { connect } from 'react-redux';
|
|
|
|
function SessionSettings({ projectId }: { projectId: number }) {
|
|
return (
|
|
<div className='bg-white box-shadow h-screen overflow-y-auto'>
|
|
<div className='px-6 pt-6'>
|
|
<h1 className='text-2xl'>Sessions Settings</h1>
|
|
</div>
|
|
|
|
<div className='p-6 border-b py-8'>
|
|
<ListingVisibility />
|
|
</div>
|
|
|
|
<div className='p-6 border-b py-8'>
|
|
<DefaultPlaying />
|
|
</div>
|
|
|
|
<div className='p-6 border-b py-8'>
|
|
<DefaultTimezone />
|
|
</div>
|
|
|
|
<div className='p-6 py-8'>
|
|
<h3 className='text-lg'>Capture Rate</h3>
|
|
<CaptureRate projectId={projectId} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default connect((state: any) => ({
|
|
projectId: state.getIn(['site', 'siteId'])
|
|
}))(SessionSettings);
|