Skip to content

Commit

Permalink
lint error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Jun 5, 2023
1 parent e4bcf93 commit ee59cbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gltf-component-mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ import { createElementEntity } from "./utils/jsx-entity";
import { setInitialNetworkedData } from "./utils/assign-network-ids";
/** @jsx createElementEntity */ createElementEntity;

// eslint-disable-next-line react/no-unknown-property
AFRAME.GLTFModelPlus.registerComponent("media-frame", "media-frame", (el, _componentName, componentData) => {
// eslint-disable-next-line react/no-unknown-property
const eid = renderAsEntity(APP.world, <entity mediaFrame={componentData} />);

addComponent(APP.world, Networked, eid);
Expand Down
5 changes: 2 additions & 3 deletions src/react-components/chat-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function renderChatMessage(body, from, allowEmojiRender) {

const EntryDom = ({ callback }) => (
<div
// callback is passed in here as part of React 18 createRoot method.
// eslint-disable-next-line react/no-unknown-property
// callback is passed in here as part of React 18 createRoot method.
// eslint-disable-next-line react/no-unknown-property
callback={callback}
className={classNames({
[styles.presenceLogEntry]: !isEmoji,
Expand All @@ -66,7 +66,6 @@ function renderChatMessage(body, from, allowEmojiRender) {
EntryDom.propTypes = {
callback: PropTypes.func
};


return new Promise((resolve, reject) => {
const root = createRoot(el);
Expand Down

0 comments on commit ee59cbb

Please sign in to comment.