Fixing linting problem from running yarn rw lint (#537)
✖ 118 problems (65 errors, 53 warnings) currently
This commit was merged in pull request #537.
This commit is contained in:
@@ -19,7 +19,7 @@ export interface UserProfileType {
|
||||
loading: boolean
|
||||
error: boolean
|
||||
onSave: Function
|
||||
projects: {}[]
|
||||
projects: any[]
|
||||
}
|
||||
|
||||
export interface FieldType {
|
||||
@@ -205,14 +205,13 @@ export function fieldReducer(state, action) {
|
||||
},
|
||||
}
|
||||
case 'SET_NEW_VALUE':
|
||||
const newState = {
|
||||
return {
|
||||
...state,
|
||||
[action.payload.field]: {
|
||||
...state[action.payload.field],
|
||||
newValue: action.payload.value,
|
||||
},
|
||||
}
|
||||
return newState
|
||||
default:
|
||||
return state
|
||||
}
|
||||
|
||||
@@ -19,10 +19,6 @@ const truncate = (text) => {
|
||||
return output
|
||||
}
|
||||
|
||||
const jsonTruncate = (obj) => {
|
||||
return truncate(JSON.stringify(obj, null, 2))
|
||||
}
|
||||
|
||||
const timeTag = (datetime) => {
|
||||
return (
|
||||
<time dateTime={datetime} title={datetime}>
|
||||
@@ -31,10 +27,6 @@ const timeTag = (datetime) => {
|
||||
)
|
||||
}
|
||||
|
||||
const checkboxInputTag = (checked) => {
|
||||
return <input type="checkbox" checked={checked} disabled />
|
||||
}
|
||||
|
||||
const UsersList = ({ users }) => {
|
||||
const [deleteUser] = useMutation(DELETE_USER_MUTATION, {
|
||||
onCompleted: () => {
|
||||
|
||||
Reference in New Issue
Block a user