Skip to content

Commit b9d588a

Browse files
committed
cleans up files and modifies legend to match corresponding D3 component design
1 parent da1d375 commit b9d588a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/app/components/History.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const filterHooks = (data: any[]) => {
3434
* @method maked3Tree :Creates a new D3 Tree
3535
*/
3636

37-
function History(props) {
37+
export default function History(props) {
3838
let { hierarchy } = props;
3939
console.log('hierarchy is', hierarchy);
4040
let root = JSON.parse(JSON.stringify(hierarchy));
@@ -257,5 +257,3 @@ function History(props) {
257257
</>
258258
);
259259
}
260-
261-
export { History, Legendary };

src/app/components/StateRoute.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import AtomsRelationship from './AtomsRelationship.jsx';
1818
import Example from './AtomsRelationship.jsx';
1919
import { ParentSize } from '@visx/responsive';
2020
import { Console } from 'console';
21-
import { History } from './History';
21+
// import { History } from './History';
2222
import Legendary from './legend';
2323

24-
// const History = require('./History');
24+
const History = require('./History').default;
2525

2626
const ErrorHandler = require('./ErrorHandler').default;
2727

src/app/components/legend.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function Legendary({ events = false }: { events?: boolean }) {
4848
.legends {
4949
font-family: arial;
5050
font-weight: 900;
51-
background-color: black;
51+
background-color: ${242529};
5252
border-radius: 14px;
5353
padding: 24px 24px 24px 32px;
5454
overflow-y: auto;

0 commit comments

Comments
 (0)