fix: minor

This commit is contained in:
Travis Fischer
2021-01-28 21:26:23 -05:00
parent a6149439e4
commit 803141f9a5
4 changed files with 15 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"files.exclude": {
"**/logs": true,
"**/*.log": true,

View File

@@ -22,15 +22,13 @@ export const Footer: React.FC<{
<div className={styles.copyright}>Copyright 2021 Travis Fischer</div>
<div className={styles.settings}>
{!config.isServer && (
<a
className={styles.toggleDarkMode}
onClick={toggleDarkMode}
title='Tottle dark mode'
>
{isDarkMode ? <IoMoonSharp /> : <IoSunnyOutline />}
</a>
)}
<a
className={styles.toggleDarkMode}
onClick={toggleDarkMode}
title='Tottle dark mode'
>
{isDarkMode ? <IoMoonSharp /> : <IoSunnyOutline />}
</a>
</div>
<div className={styles.social}>

View File

@@ -1,6 +1,5 @@
import React from 'react'
import { HTMLDivElement } from 'react-dom'
import styles from './styles.module.css'
export type MappingType =
@@ -59,7 +58,7 @@ export class ReactUtterances extends React.Component<
this.state = { pending: true }
}
componentWillReceiveProps(props) {
UNSAFE_componentWillReceiveProps(props) {
// this.scriptElement.setAttribute('theme', props.theme)
const iframe = document.querySelector('iframe.utterances-frame') as any

View File

@@ -3926,9 +3926,9 @@ memorystream@^0.3.1:
integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI=
merge-class-names@^1.1.1:
version "1.3.0"
resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.3.0.tgz#c4cdc1a981a81dd9afc27aa4287e912a337c5dee"
integrity sha512-k0Qaj36VBpKgdc8c188LEZvo6v/zzry/FUufwopWbMSp6/knfVFU/KIB55/hJjeIpg18IH2WskXJCRnM/1BrdQ==
version "1.4.0"
resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.4.0.tgz#02edcdd5ff677fbb03b47ecd4586df89d697b81b"
integrity sha512-xNdBM7s+6uD+vNZJEymqrFbMBCDGzoA8clZTcj2F1XIy1QQKF+wjFVv7iDZFfdCBnViTdt54A4Ye2lmBsXrBjQ==
merge-stream@^2.0.0:
version "2.0.0"
@@ -5182,9 +5182,9 @@ rc-dropdown@^3.1.2:
rc-trigger "^5.0.4"
rc-menu@^8.5.2:
version "8.10.4"
resolved "https://registry.yarnpkg.com/rc-menu/-/rc-menu-8.10.4.tgz#234b6cb12690a39ca1e9c380aa846110ec06ffdb"
integrity sha512-eZOyl6RZFNwREP2MMyIOicrEOA9oeAFz13YG5LBmclz1nJQnpkWRN1NjSSQf2JQGybiuI3zQn+PMfFG99i0YxQ==
version "8.10.5"
resolved "https://registry.yarnpkg.com/rc-menu/-/rc-menu-8.10.5.tgz#44b7381c650cc76020dfd65753b535f415012179"
integrity sha512-8Ets93wQFy9IysmgRUm1VGdrEz6XfZTM0jQOqOPLYNXah5HgAmCh4xT0UOygfHB3IWiQeqDgr2uPB4uVhwI2+Q==
dependencies:
"@babel/runtime" "^7.10.1"
classnames "2.x"