mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
(nextjs) fixed fonts
This commit is contained in:
parent
d9127e5b7c
commit
7e14b52bf9
2 changed files with 10 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
||||||
|
/** used to transpile UMD and CJS modules */
|
||||||
const withTM = require('next-transpile-modules')(['ramda']);
|
const withTM = require('next-transpile-modules')(['ramda']);
|
||||||
|
|
||||||
module.exports = withTM({
|
module.exports = withTM({
|
||||||
/* Your Next.js config */
|
/** rewrite old-style node paths */
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
@ -10,4 +11,7 @@ module.exports = withTM({
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/** don't try to optimize fonts */
|
||||||
|
optimizeFonts: false,
|
||||||
});
|
});
|
||||||
|
|
|
@ -27,7 +27,11 @@ const NodeComments: FC<IProps> = memo(({ order }) => {
|
||||||
onSaveComment,
|
onSaveComment,
|
||||||
} = useCommentContext();
|
} = useCommentContext();
|
||||||
|
|
||||||
const groupped: ICommentGroup[] = useGrouppedComments(comments, order, lastSeenCurrent);
|
const groupped: ICommentGroup[] = useGrouppedComments(
|
||||||
|
comments,
|
||||||
|
order,
|
||||||
|
lastSeenCurrent ?? undefined
|
||||||
|
);
|
||||||
|
|
||||||
const more = useMemo(
|
const more = useMemo(
|
||||||
() =>
|
() =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue