Skip to content

Commit

Permalink
Fix bug with react-fontawesome and SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
avevlad committed May 3, 2020
1 parent d521bd0 commit 11bdc5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faRocket } from "@fortawesome/free-solid-svg-icons/faRocket";
import * as timeago from "timeago.js";
import ru_locale from "timeago.js/lib/lang/ru";
/**
* https://github.com/FortAwesome/react-fontawesome/issues/134
*/
import "@fortawesome/fontawesome-svg-core/styles.css";

import s from "./_app.module.css";

timeago.register("ru", ru_locale);
Expand Down

1 comment on commit 11bdc5e

@vercel
Copy link

@vercel vercel bot commented on 11bdc5e May 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.