From 67faaeaefffc24cef1d3ad5424193b005d7b232f Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Wed, 14 Apr 2021 10:18:45 +0100 Subject: [PATCH] Rename Velociraptor to NodeAnimator after velocity deprecation --- .eslintignore.errorfiles | 2 +- src/{Velociraptor.js => NodeAnimator.js} | 4 ++-- src/components/views/rooms/ReadReceiptMarker.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/{Velociraptor.js => NodeAnimator.js} (96%) diff --git a/.eslintignore.errorfiles b/.eslintignore.errorfiles index 1c0a3d1254..d9177bebb5 100644 --- a/.eslintignore.errorfiles +++ b/.eslintignore.errorfiles @@ -1,7 +1,7 @@ # autogenerated file: run scripts/generate-eslint-error-ignore-file to update. src/Markdown.js -src/Velociraptor.js +src/NodeAnimator.js src/components/structures/RoomDirectory.js src/components/views/rooms/MemberList.js src/ratelimitedfunc.js diff --git a/src/Velociraptor.js b/src/NodeAnimator.js similarity index 96% rename from src/Velociraptor.js rename to src/NodeAnimator.js index 1592f4be06..8456e6e9fd 100644 --- a/src/Velociraptor.js +++ b/src/NodeAnimator.js @@ -3,13 +3,13 @@ import ReactDom from "react-dom"; import PropTypes from 'prop-types'; /** - * The Velociraptor contains components and animates transitions with velocity. + * The NodeAnimator contains components and animates transitions. * It will only pick up direct changes to properties ('left', currently), and so * will not work for animating positional changes where the position is implicit * from DOM order. This makes it a lot simpler and lighter: if you need fully * automatic positional animation, look at react-shuffle or similar libraries. */ -export default class Velociraptor extends React.Component { +export default class NodeAnimator extends React.Component { static propTypes = { // either a list of child nodes, or a single child. children: PropTypes.any, diff --git a/src/components/views/rooms/ReadReceiptMarker.js b/src/components/views/rooms/ReadReceiptMarker.js index e2b95a7ada..709e6a0db0 100644 --- a/src/components/views/rooms/ReadReceiptMarker.js +++ b/src/components/views/rooms/ReadReceiptMarker.js @@ -19,7 +19,7 @@ import React, {createRef} from 'react'; import PropTypes from 'prop-types'; import { _t } from '../../../languageHandler'; import {formatDate} from '../../../DateUtils'; -import Velociraptor from "../../../Velociraptor"; +import NodeAnimator from "../../../NodeAnimator"; import * as sdk from "../../../index"; import {toPx} from "../../../utils/units"; import {replaceableComponent} from "../../../utils/replaceableComponent"; @@ -187,7 +187,7 @@ export default class ReadReceiptMarker extends React.PureComponent { } return ( - - + ); } }