diff --git a/client/src/components/trello-board/components/Card.jsx b/client/src/components/trello-board/components/Card.jsx
deleted file mode 100644
index d4ef6265d..000000000
--- a/client/src/components/trello-board/components/Card.jsx
+++ /dev/null
@@ -1,112 +0,0 @@
-import React, { useCallback } from "react";
-import PropTypes from "prop-types";
-
-import { CardHeader, CardRightContent, CardTitle, Detail, Footer, MovableCardWrapper } from "../styles/Base";
-import InlineInput from "../widgets/InlineInput.jsx";
-import Tag from "./Card/Tag.jsx";
-import DeleteButton from "../widgets/DeleteButton.jsx";
-import { useTranslation } from "react-i18next";
-
-const Card = ({
- showDeleteButton = true,
- onDelete = () => {},
- onClick = () => {},
- style = {},
- tagStyle = {},
- className = "",
- id,
- title = "no title",
- label = "",
- description = "",
- tags = [],
- cardDraggable,
- editable,
- onChange
-}) => {
- const { t } = useTranslation();
-
- const handleDelete = useCallback(
- (e) => {
- onDelete();
- e.stopPropagation();
- },
- [onDelete]
- );
-
- const updateCard = (card) => {
- onChange({ ...card, id });
- };
-
- return (
-
-
-
- {editable ? (
- updateCard({ title: value })}
- />
- ) : (
- title
- )}
-
-
- {editable ? (
- updateCard({ label: value })}
- />
- ) : (
- label
- )}
-
- {showDeleteButton && }
-
-
- {editable ? (
- updateCard({ description: value })}
- />
- ) : (
- description
- )}
-
- {tags && tags.length > 0 && (
-
- )}
-
- );
-};
-
-Card.propTypes = {
- showDeleteButton: PropTypes.bool,
- onDelete: PropTypes.func,
- onClick: PropTypes.func,
- style: PropTypes.object,
- tagStyle: PropTypes.object,
- className: PropTypes.string,
- id: PropTypes.string.isRequired,
- title: PropTypes.string.isRequired,
- label: PropTypes.string,
- description: PropTypes.string,
- tags: PropTypes.array,
- cardDraggable: PropTypes.bool,
- editable: PropTypes.bool,
- onChange: PropTypes.func.isRequired
-};
-
-export default Card;
diff --git a/client/src/components/trello-board/components/Loader.jsx b/client/src/components/trello-board/components/Loader.jsx
deleted file mode 100644
index 52b55ea81..000000000
--- a/client/src/components/trello-board/components/Loader.jsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react'
-import {LoaderDiv, LoadingBar} from '../styles/Loader'
-
-const Loader = () => (
-
-
-
-
-
-
-)
-
-export default Loader
diff --git a/client/src/components/trello-board/components/index.js b/client/src/components/trello-board/components/index.js
index 78448c5b1..609bb7ccf 100644
--- a/client/src/components/trello-board/components/index.js
+++ b/client/src/components/trello-board/components/index.js
@@ -1,6 +1,4 @@
import LaneFooter from "./Lane/LaneFooter";
-import Card from "./Card";
-import Loader from "./Loader.jsx";
import { BoardWrapper, StyleHorizontal, GlobalStyle, StyleVertical, ScrollableLane, Section } from "../styles/Base";
@@ -9,11 +7,9 @@ const exports = {
StyleVertical,
GlobalStyle,
BoardWrapper,
- Loader,
ScrollableLane,
LaneFooter,
- Section,
- Card
+ Section
};
export default exports;
diff --git a/client/src/components/trello-board/controllers/Board.jsx b/client/src/components/trello-board/controllers/Board.jsx
index be5c317dc..418b1c260 100644
--- a/client/src/components/trello-board/controllers/Board.jsx
+++ b/client/src/components/trello-board/controllers/Board.jsx
@@ -1,6 +1,7 @@
import { BoardContainer } from "../index";
import { useMemo, useState } from "react";
import { v1 } from "uuid";
+import { GlobalStyle } from "../styles/Base.js";
const Board = ({ id, className, components, orientation, ...additionalProps }) => {
const [storeId] = useState(id || v1());
@@ -13,7 +14,7 @@ const Board = ({ id, className, components, orientation, ...additionalProps }) =
return (
<>
-
+