Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alnasir7 committed Oct 31, 2021
1 parent 2fa2614 commit a441681
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion frontend/components/ClubEditPage/EventsCard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Field } from 'formik'
import moment from 'moment'
import React, { ReactElement, useState } from 'react'
import CreatableSelect from 'react-select/creatable'
import TimeAgo from 'react-timeago'
import styled from 'styled-components'

Expand Down
12 changes: 8 additions & 4 deletions frontend/components/common/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import {
BORDER,
CLUBS_GREY,
FOCUS_GRAY,
SNOW,
LIGHT_GRAY,
SNOW,
WHITE,
} from '../../constants/colors'
import { BORDER_RADIUS, MD, mediaMaxWidth } from '../../constants/measurements'
Expand Down Expand Up @@ -351,9 +351,13 @@ const Table = ({
{columns.map((column, i) => {
return (
<td key={i}>
{column.render ?
(column.render(row.original.id) || (<GreyText>None</GreyText>))
: (row.original[column.name] || (<GreyText>None</GreyText>))}
{column.render
? column.render(row.original.id) || (
<GreyText>None</GreyText>
)
: row.original[column.name] || (
<GreyText>None</GreyText>
)}
</td>
)
})}
Expand Down

0 comments on commit a441681

Please sign in to comment.