Skip to content

Commit 803141f

Browse files
fix: minor
1 parent a614943 commit 803141f

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"typescript.tsdk": "./node_modules/typescript/lib",
23
"files.exclude": {
34
"**/logs": true,
45
"**/*.log": true,

components/Footer.tsx

+7-9
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ export const Footer: React.FC<{
2222
<div className={styles.copyright}>Copyright 2021 Travis Fischer</div>
2323

2424
<div className={styles.settings}>
25-
{!config.isServer && (
26-
<a
27-
className={styles.toggleDarkMode}
28-
onClick={toggleDarkMode}
29-
title='Tottle dark mode'
30-
>
31-
{isDarkMode ? <IoMoonSharp /> : <IoSunnyOutline />}
32-
</a>
33-
)}
25+
<a
26+
className={styles.toggleDarkMode}
27+
onClick={toggleDarkMode}
28+
title='Tottle dark mode'
29+
>
30+
{isDarkMode ? <IoMoonSharp /> : <IoSunnyOutline />}
31+
</a>
3432
</div>
3533

3634
<div className={styles.social}>

components/ReactUtterances.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22

3-
import { HTMLDivElement } from 'react-dom'
43
import styles from './styles.module.css'
54

65
export type MappingType =
@@ -59,7 +58,7 @@ export class ReactUtterances extends React.Component<
5958
this.state = { pending: true }
6059
}
6160

62-
componentWillReceiveProps(props) {
61+
UNSAFE_componentWillReceiveProps(props) {
6362
// this.scriptElement.setAttribute('theme', props.theme)
6463
const iframe = document.querySelector('iframe.utterances-frame') as any
6564

yarn.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -3926,9 +3926,9 @@ memorystream@^0.3.1:
39263926
integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI=
39273927

39283928
merge-class-names@^1.1.1:
3929-
version "1.3.0"
3930-
resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.3.0.tgz#c4cdc1a981a81dd9afc27aa4287e912a337c5dee"
3931-
integrity sha512-k0Qaj36VBpKgdc8c188LEZvo6v/zzry/FUufwopWbMSp6/knfVFU/KIB55/hJjeIpg18IH2WskXJCRnM/1BrdQ==
3929+
version "1.4.0"
3930+
resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.4.0.tgz#02edcdd5ff677fbb03b47ecd4586df89d697b81b"
3931+
integrity sha512-xNdBM7s+6uD+vNZJEymqrFbMBCDGzoA8clZTcj2F1XIy1QQKF+wjFVv7iDZFfdCBnViTdt54A4Ye2lmBsXrBjQ==
39323932

39333933
merge-stream@^2.0.0:
39343934
version "2.0.0"
@@ -5182,9 +5182,9 @@ rc-dropdown@^3.1.2:
51825182
rc-trigger "^5.0.4"
51835183

51845184
rc-menu@^8.5.2:
5185-
version "8.10.4"
5186-
resolved "https://registry.yarnpkg.com/rc-menu/-/rc-menu-8.10.4.tgz#234b6cb12690a39ca1e9c380aa846110ec06ffdb"
5187-
integrity sha512-eZOyl6RZFNwREP2MMyIOicrEOA9oeAFz13YG5LBmclz1nJQnpkWRN1NjSSQf2JQGybiuI3zQn+PMfFG99i0YxQ==
5185+
version "8.10.5"
5186+
resolved "https://registry.yarnpkg.com/rc-menu/-/rc-menu-8.10.5.tgz#44b7381c650cc76020dfd65753b535f415012179"
5187+
integrity sha512-8Ets93wQFy9IysmgRUm1VGdrEz6XfZTM0jQOqOPLYNXah5HgAmCh4xT0UOygfHB3IWiQeqDgr2uPB4uVhwI2+Q==
51885188
dependencies:
51895189
"@babel/runtime" "^7.10.1"
51905190
classnames "2.x"

0 commit comments

Comments
 (0)