Skip to content

Commit

Permalink
Merge pull request #72 from open-rpc/fix/add-height-scroll-bottom
Browse files Browse the repository at this point in the history
fix: remove scroll to bottom
  • Loading branch information
openrpc-bastion authored Oct 14, 2020
2 parents eae80bf + e382a85 commit 08c73c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 64 deletions.
56 changes: 4 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"react": "16.12.0",
"react-dom": "16.12.0",
"react-i18next": "^10.13.1",
"react-scroll-to-bottom": "^2.0.0",
"use-dark-mode": "^2.3.1"
},
"rescripts": [
Expand Down
13 changes: 2 additions & 11 deletions src/components/cardList/cardList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { IJSONRPCLog } from "../logsReact/logsReact";
import CardListItem from "../cardListItem/cardListItem";
import ScrollToBottom from "react-scroll-to-bottom";
import "./cardList.css";

interface IProps {
Expand All @@ -21,20 +20,12 @@ const CardList: React.FC<IProps> = (props) => {
};

return (
<div style={{ width: "100%" }}>
<div style={{ width: "100%", height: "100%", overflow: "auto" }}>
{props.logs.map((call, i) => (
cardRender(call, i)
))}
</div>
);
};

export default (props) => (
<ScrollToBottom className="scroll-to-bottom">
<CardList
logs={props.logs}
filter={props.filter}
openRecentPayload={props.openRecentPayload}
/>
</ScrollToBottom>
);
export default CardList;

0 comments on commit 08c73c4

Please sign in to comment.