Skip to content

Commit

Permalink
🔧 from browserrouter to hashrouter
Browse files Browse the repository at this point in the history
  • Loading branch information
dl0312 committed Aug 25, 2019
1 parent 0e319e2 commit d307cc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from "styled-components";
import Router from "./Router";
import { GlobalStyle } from "./global-styles";
import { ToastContainer } from "react-toastify";
import { BrowserRouter } from "react-router-dom";
import { HashRouter } from "react-router-dom";
import ScrollToTop from "./utils/ScrollToTop";

const AppContainer = styled.div``;
Expand All @@ -19,13 +19,13 @@ const App: React.SFC = () => {
hideProgressBar={true}
pauseOnHover={true}
/>
<BrowserRouter>
<HashRouter>
<ScrollToTop>
<AppContainer className="app">
<Router />
</AppContainer>
</ScrollToTop>
</BrowserRouter>
</HashRouter>
</>
);
};
Expand Down
8 changes: 6 additions & 2 deletions src/routes/Tracking.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,17 @@ class Tracking extends Component {
overflow={true}
hanger={"50%"}
anchor={"50%"}
gap={5}
gap={25}
moveType={{ type: "snap", count: 1 }}
collectStatistics={true}
plugins={[new Fade()]}
>
{popupCards.map((card, index) => (
<AnimalCard imageSrc={card} key={index} />
<AnimalCard
style={{ height: "30rem", backgroundSize: "auto 100%" }}
imageSrc={card}
key={index}
/>
))}
</Flicking>
</DarkBackground>
Expand Down

0 comments on commit d307cc5

Please sign in to comment.