Skip to content

Commit

Permalink
[Board] Add title and description to board view (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
meowcodes authored Dec 8, 2020
1 parent a1a6d79 commit 94b5862
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions datahub/webapp/components/Board/Board.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import * as React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { fetchDataDocIfNeeded } from 'redux/dataDoc/action';
import { fetchDataTableIfNeeded } from 'redux/dataSources/action';

import { fetchBoardIfNeeded } from 'redux/board/action';
import { Dispatch, IStoreState } from 'redux/store/types';

import { BoardDataDocItem } from './BoardDataDocItem';
import { BoardDataTableItem } from './BoardDataTableItem';
import { Dispatch, IStoreState } from 'redux/store/types';
import { Title } from 'ui/Title/Title';

import './Board.scss';
import { fetchBoardIfNeeded } from 'redux/board/action';

interface IProps {
boardId: number;
Expand Down Expand Up @@ -42,5 +43,13 @@ export const Board: React.FunctionComponent<IProps> = ({ boardId }) => {
)
);

return <div className="Board m48">{boardItemDOM}</div>;
return (
<div className="Board mv24 mh48">
<div className="Board-top ml4">
<Title>{board?.name}</Title>
<div className="Board-desc">{board?.description}</div>
</div>
{boardItemDOM}
</div>
);
};

0 comments on commit 94b5862

Please sign in to comment.