Spelling is hard for me

This commit is contained in:
Jordan Eldredge 2020-11-11 00:42:12 -08:00
parent 21c6c22584
commit 2136696fa2
3 changed files with 8 additions and 8 deletions

View file

@ -17,7 +17,7 @@ const Cell = React.memo((props) => {
setSelectedSkin,
requestUnloadedSkin,
permalinkUrl,
concentsToNsfw,
consentsToNsfw,
doesNotConcentToNsfw,
showNsfw,
} = props;
@ -58,7 +58,7 @@ const Cell = React.memo((props) => {
nsfw={nsfw}
// TODO: This is werid because there is an implicit assumption that this is always avaliable if we have the skin
permalink={permalinkUrl}
concentsToNsfw={concentsToNsfw}
consentsToNsfw={consentsToNsfw}
doesNotConcentToNsfw={doesNotConcentToNsfw}
showNsfw={showNsfw}
/>
@ -92,8 +92,8 @@ const mapDispatchToProps = (dispatch) => ({
setSelectedSkin(hash, position) {
dispatch(Actions.selectedSkin(hash, position));
},
concentsToNsfw() {
dispatch(Actions.concentsToNsfw());
consentsToNsfw() {
dispatch(Actions.consentsToNsfw());
},
doesNotConcentToNsfw() {

View file

@ -13,7 +13,7 @@ function Skin({
src,
fileName,
nsfw,
concentsToNsfw,
consentsToNsfw,
doesNotConcentToNsfw,
showNsfw,
}) {
@ -32,7 +32,7 @@ function Skin({
doesNotConcentToNsfw();
return;
} else {
concentsToNsfw();
consentsToNsfw();
}
}
if (Utils.eventIsLinkClick(e)) {
@ -47,7 +47,7 @@ function Skin({
}
},
[
concentsToNsfw,
consentsToNsfw,
doesNotConcentToNsfw,
hash,
nsfw,

View file

@ -35,7 +35,7 @@ export function loadedSkinZip(zip) {
return { type: "LOADED_SKIN_ZIP", zip };
}
export function concentsToNsfw() {
export function consentsToNsfw() {
return { type: "CONCENTS_TO_NSFW" };
}