@@ -24,7 +25,7 @@ export const Notification = props =>
{props.workspaceList.length > 0
? props.workspaceList.map(ws => {
const mySelf = ws.memberList.find(u => u.id === props.userLoggedId)
- const myRole = ROLE.find(r => r.slug === mySelf.role)
+ const myRole = ROLE_LIST.find(r => r.slug === mySelf.role)
return (
@@ -67,3 +68,14 @@ export const Notification = props =>
export default translate()(Notification)
+
+Notification.propTypes = {
+ workspaceList: PropTypes.arrayOf(PropTypes.object),
+ userLoggedId: PropTypes.number,
+ onChangeSubscriptionNotif: PropTypes.func
+}
+
+Notification.defaultProps = {
+ workspaceList: [],
+ onChangeSubscriptionNotif: () => {}
+}
diff --git a/frontend/src/component/Account/Timezone.jsx b/frontend/src/component/Account/Timezone.jsx
index d4a0cc4ada..36239c6d2f 100644
--- a/frontend/src/component/Account/Timezone.jsx
+++ b/frontend/src/component/Account/Timezone.jsx
@@ -1,6 +1,7 @@
import React from 'react'
import Select from 'react-select'
-import 'react-select/dist/react-select.css'
+// INFO - GM - 2019-08-20 - this css file doesn't exist
+// import 'react-select/dist/react-select.css'
import { translate } from 'react-i18next'
export const Timezone = props => {
diff --git a/frontend/src/component/ContentItemSearch.jsx b/frontend/src/component/ContentItemSearch.jsx
index 9ec99495cf..7b2dd0cd78 100644
--- a/frontend/src/component/ContentItemSearch.jsx
+++ b/frontend/src/component/ContentItemSearch.jsx
@@ -6,7 +6,7 @@ import { Badge, Avatar } from 'tracim_frontend_lib'
require('./ContentItemSearch.styl')
-const ContentItemSearch = props => {
+export const ContentItemSearch = props => {
const status = props.contentType.availableStatuses.find(s => s.slug === props.statusSlug) || { hexcolor: '', label: '', faIcon: '' }
return (
diff --git a/frontend/src/component/FlashMessage.jsx b/frontend/src/component/FlashMessage.jsx
index 7d3e06e4de..0556f28ed9 100644
--- a/frontend/src/component/FlashMessage.jsx
+++ b/frontend/src/component/FlashMessage.jsx
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types'
require('./FlashMessage.styl')
-const FlashMessage = props => {
+export const FlashMessage = props => {
if (!props.flashMessage.length || props.flashMessage.length === 0) return null
const dataTypeArray = [{
diff --git a/frontend/src/component/Header/MenuActionListItem/MenuProfil.jsx b/frontend/src/component/Header/MenuActionListItem/MenuProfil.jsx
index 0589fd30bc..fc6980df68 100644
--- a/frontend/src/component/Header/MenuActionListItem/MenuProfil.jsx
+++ b/frontend/src/component/Header/MenuActionListItem/MenuProfil.jsx
@@ -7,7 +7,7 @@ import { Avatar } from 'tracim_frontend_lib'
require('./MenuProfil.styl')
-const MenuProfil = props => {
+export const MenuProfil = props => {
if (!props.user.logged) return null
return (
diff --git a/frontend/src/component/Header/Search.jsx b/frontend/src/component/Header/Search.jsx
index 87e418d324..d5476cf399 100644
--- a/frontend/src/component/Header/Search.jsx
+++ b/frontend/src/component/Header/Search.jsx
@@ -3,7 +3,7 @@ import { translate } from 'react-i18next'
require('./Search.styl')
-class Search extends React.Component {
+export class Search extends React.Component {
constructor (props) {
super(props)
diff --git a/frontend/src/component/Workspace/BtnExtandedAction.jsx b/frontend/src/component/Workspace/BtnExtandedAction.jsx
index a85759736b..7d7f314d34 100644
--- a/frontend/src/component/Workspace/BtnExtandedAction.jsx
+++ b/frontend/src/component/Workspace/BtnExtandedAction.jsx
@@ -5,7 +5,7 @@ import { ROLE } from 'tracim_frontend_lib'
import { PAGE } from '../../helper'
import { Link } from 'react-router-dom'
-const ExtandedAction = props => {
+export const ExtandedAction = props => {
return (
{
+export const FileItemHeader = props => {
return (
diff --git a/frontend/src/component/common/Input/DropdownCreateButton.jsx b/frontend/src/component/common/Input/DropdownCreateButton.jsx
index 5a8261acc2..7d22e28ccf 100644
--- a/frontend/src/component/common/Input/DropdownCreateButton.jsx
+++ b/frontend/src/component/common/Input/DropdownCreateButton.jsx
@@ -4,7 +4,7 @@ import classnames from 'classnames'
import SubDropdownCreateButton from './SubDropdownCreateButton.jsx'
import { translate } from 'react-i18next'
-const DropdownCreateButton = props => {
+export const DropdownCreateButton = props => {
return (
|