|
@@ -5,6 +5,7 @@ import Tag from 'components/Tag';
|
|
|
import Button from 'components/Button';
|
|
import Button from 'components/Button';
|
|
|
import Input from 'components/Input';
|
|
import Input from 'components/Input';
|
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
|
|
|
+import { IMG } from 'services/Api';
|
|
|
import { parseMonth } from 'services/DataParser';
|
|
import { parseMonth } from 'services/DataParser';
|
|
|
import { includes, descend, ascend, sortWith } from 'ramda';
|
|
import { includes, descend, ascend, sortWith } from 'ramda';
|
|
|
import { FaSort, FaSortUp, FaSortDown } from 'react-icons/fa';
|
|
import { FaSort, FaSortUp, FaSortDown } from 'react-icons/fa';
|
|
@@ -235,7 +236,7 @@ const Table = <T extends Critter>({ data, columns }: TableProps<T>) => {
|
|
|
{
|
|
{
|
|
|
critters.map((critter, key) => (
|
|
critters.map((critter, key) => (
|
|
|
<tr key={key}>
|
|
<tr key={key}>
|
|
|
- <td className="critter-img"><img className="critter-img" src={`${process.env.REACT_APP_API}/images/${critter.imgUrl}`} alt={critter.name}/></td>
|
|
|
|
|
|
|
+ <td className="critter-img"><img className="critter-img" src={`${IMG}/${critter.imgUrl}`} alt={critter.name}/></td>
|
|
|
{
|
|
{
|
|
|
columns.map(({ key, display, type }, i) => (
|
|
columns.map(({ key, display, type }, i) => (
|
|
|
<td key={i}>
|
|
<td key={i}>
|