Skip to content

Commit

Permalink
[#127] refactor: remove unused history prop
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiNext committed Jun 29, 2020
1 parent 607f721 commit 0a2cf04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/ApartmentProfile/Header/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("Header", () => {
});

it("should render Back button", () => {
render(<Header apartment={mockApartment} {...history} />);
render(<Header apartment={mockApartment} />);

const backButton = screen.getByRole("button", { name: /< Back/i });
expect(backButton).toBeInTheDocument();
Expand Down
1 change: 1 addition & 0 deletions src/containers/ApartmentProfile/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Header from "./Header";
const ApartmentProfile = () => {
const { apartmentId } = useParams();
const { apartment } = useApartmentData(apartmentId);

return (
<div>
<SearchBar2 placeholder="Search here" />
Expand Down

0 comments on commit 0a2cf04

Please sign in to comment.