-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathCacheInMemory.tsx
More file actions
33 lines (31 loc) · 1016 Bytes
/
CacheInMemory.tsx
File metadata and controls
33 lines (31 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React, { ReactElement } from 'react'
import { FormGroup, Card, Col, CardBody } from 'Components'
import GluuInputRow from 'Routes/Apps/Gluu/GluuInputRow'
import { CACHE } from 'Utils/ApiResources'
import { useTranslation } from 'react-i18next'
import type { CacheInMemoryProps } from './types'
function CacheInMemory({ formik }: CacheInMemoryProps): ReactElement {
const { t } = useTranslation()
return (
<Card>
<CardBody>
<FormGroup row>
<Col xs="12" style={{ fontSize: 24, fontWeight: 'bold', marginBottom: 15 }}>
{t('fields.in_memory_configuration')}:
</Col>
</FormGroup>
<GluuInputRow
label="fields.default_put_expiration"
name="memoryDefaultPutExpiration"
type="number"
lsize={6}
rsize={6}
formik={formik}
value={formik.values.memoryDefaultPutExpiration}
doc_category={CACHE}
/>
</CardBody>
</Card>
)
}
export default CacheInMemory