@ -3,82 +3,75 @@ import React, { PureComponent } from 'react'
import { translate } from 'react-i18next'
import styled from 'styled-components'
import { MODAL_REPORT_BUG S } from 'config/constants'
import { MODAL_SHARE_ANALYTIC S } from 'config/constants'
import Modal , { ModalBody , ModalTitle , ModalContent , ModalFooter } from 'components/base/Modal'
import Button from 'components/base/Button'
import Box from 'components/base/Box'
import Text from 'components/base/Text'
import type { T } from 'types/common'
const Title = styled ( Text ) . attrs ( {
ff : 'Museo Sans' ,
fontSize : 5 ,
color : 'dark' ,
} ) ` `
type Props = {
t : T ,
}
class ReportBug s extends PureComponent < Props , * > {
class ShareAnalytics extends PureComponent < Props , * > {
render ( ) {
const { t } = this . props
const step s = [
const item s = [
{
key : 'item1' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item1' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item1' ) ,
} ,
{
key : 'item2' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item2' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item2' ) ,
} ,
{
key : 'item3' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item3' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item3' ) ,
} ,
{
key : 'item4' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item4' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item4' ) ,
} ,
{
key : 'item5' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item5' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item5' ) ,
} ,
{
key : 'item6' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item6' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item6' ) ,
} ,
{
key : 'item7' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item7' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item7' ) ,
} ,
{
key : 'item8' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item8' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item8' ) ,
} ,
{
key : 'item9' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item9' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item9' ) ,
} ,
{
key : 'item10' ,
desc : t ( 'onboarding:analytics.sentryLog s.mandatoryContextual.item10' ) ,
desc : t ( 'onboarding:analytics.shareAnalytic s.mandatoryContextual.item10' ) ,
} ,
]
return (
< Modal
name = { MODAL_REPORT_BUG S }
name = { MODAL_SHARE_ANALYTIC S }
render = { ( { onClose } ) => (
< ModalBody onClose = { onClose } >
< ModalTitle > { t ( 'onboarding:analytics.sentryLog s.title' ) } < / M o d a l T i t l e >
< InlineDesc > { t ( 'onboarding:analytics.sentryLog s.desc' ) } < / I n l i n e D e s c >
< ModalTitle > { t ( 'onboarding:analytics.shareAnalytic s.title' ) } < / M o d a l T i t l e >
< InlineDesc > { t ( 'onboarding:analytics.shareAnalytic s.desc' ) } < / I n l i n e D e s c >
< ModalContent mx = { 5 } >
< Ul > { step s. map ( step => < li key = { step . key } > { step . desc } < / l i > ) } < / U l >
< Ul > { item s. map ( item => < li key = { item . key } > { item . desc } < / l i > ) } < / U l >
< / M o d a l C o n t e n t >
< ModalFooter horizontal justifyContent = "flex-end" >
< Button onClick = { onClose } primary >
Close
{ t ( 'app:common.close' ) }
< / B u t t o n >
< / M o d a l F o o t e r >
< / M o d a l B o d y >
@ -88,7 +81,7 @@ class ReportBugs extends PureComponent<Props, *> {
}
}
export default translate ( ) ( ReportBug s)
export default translate ( ) ( ShareAnalytic s)
export const Ul = styled . ul . attrs ( {
ff : 'Open Sans|Regular' ,