From 4a6a5e1350a5bfeb9cf4d902a3195ea51848b6ef Mon Sep 17 00:00:00 2001 From: Mateusz Filipowicz Date: Wed, 3 Jun 2020 23:15:52 +0200 Subject: [PATCH] feat(components): :sparkles: use emojies in next-previous title --- src/components/nextPrevious/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/nextPrevious/index.js b/src/components/nextPrevious/index.js index adccc460..b62c53e4 100644 --- a/src/components/nextPrevious/index.js +++ b/src/components/nextPrevious/index.js @@ -1,6 +1,7 @@ import React from 'react'; import Link from "../link"; import styled from "@emotion/styled"; +import emoji from 'node-emoji' import { calculateFlatNavigation, getNavigationData } from '../navigation'; @@ -62,7 +63,7 @@ const ContentWrapper = styled(({className, label, title}) => { {label} - <span>{title}</span> + <span>{emoji.emojify(title, (name) => name)}</span> )