mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-03 11:40:44 +03:00
rename upvote to upvotePopover
This commit is contained in:
parent
ffa8ae764a
commit
55c4cc88db
@ -11,7 +11,7 @@ import { delay } from '../../../utils/editor';
|
||||
|
||||
// Components
|
||||
import { CommentBody, PostHeaderDescription } from '../../postElements';
|
||||
import { Upvote } from '../../upvote';
|
||||
import { Upvote } from '../../upvotePopover';
|
||||
import { IconButton } from '../../iconButton';
|
||||
import { TextWithIcon } from '../../basicUIElements';
|
||||
|
||||
|
@ -57,7 +57,7 @@ import { TextInput } from './textInput';
|
||||
import { ToastNotification } from './toastNotification';
|
||||
import { ToggleSwitch } from './toggleSwitch';
|
||||
import { TransferFormItem } from './transferFormItem';
|
||||
import { Upvote } from './upvote';
|
||||
import { UpvotePopover } from './upvotePopover';
|
||||
import { UserAvatar } from './userAvatar';
|
||||
|
||||
import Logo from './logo/logo';
|
||||
@ -221,7 +221,7 @@ export {
|
||||
ToggleSwitch,
|
||||
Transaction,
|
||||
TransferFormItem,
|
||||
Upvote,
|
||||
UpvotePopover,
|
||||
UserAvatar,
|
||||
UserListItem,
|
||||
VotersDisplay,
|
||||
|
@ -7,7 +7,7 @@ import { useNavigation } from '@react-navigation/native';
|
||||
import ROUTES from '../../../constants/routeNames';
|
||||
import { useIntl } from 'react-intl';
|
||||
import Popover from 'react-native-modal-popover';
|
||||
import Upvote from '../../upvote';
|
||||
import { UpvotePopover } from '../..';
|
||||
import { PostTypes } from '../../../constants/postTypes';
|
||||
import { PostOptionsModal } from '../../postOptionsModal';
|
||||
|
||||
@ -284,7 +284,7 @@ const postsListContainer = (
|
||||
}
|
||||
{...props}
|
||||
/>
|
||||
<Upvote
|
||||
<UpvotePopover
|
||||
ref={upvotePopoverRef}
|
||||
parentType={PostTypes.POST}
|
||||
/>
|
||||
|
@ -1,4 +0,0 @@
|
||||
import Upvote from './container/upvoteContainer';
|
||||
|
||||
export { Upvote };
|
||||
export default Upvote;
|
@ -9,7 +9,7 @@ import { getTimeFromNow } from '../../../utils/time';
|
||||
|
||||
import { FormattedCurrency } from '../../formatedElements';
|
||||
// Styles
|
||||
import styles from '../children/upvoteStyles';
|
||||
import styles from './upvoteStyles';
|
||||
|
||||
|
||||
interface Props {
|
@ -54,7 +54,7 @@ interface Props {
|
||||
*
|
||||
*/
|
||||
|
||||
const UpvoteContainer = forwardRef(({ parentType }: Props, ref) => {
|
||||
const UpvotePopover = forwardRef(({ parentType }: Props, ref) => {
|
||||
|
||||
const intl = useIntl();
|
||||
const dispatch = useAppDispatch();
|
||||
@ -409,4 +409,4 @@ const UpvoteContainer = forwardRef(({ parentType }: Props, ref) => {
|
||||
);
|
||||
});
|
||||
|
||||
export default UpvoteContainer;
|
||||
export default UpvotePopover;
|
4
src/components/upvotePopover/index.js
Normal file
4
src/components/upvotePopover/index.js
Normal file
@ -0,0 +1,4 @@
|
||||
import UpvotePopover from './container/upvotePopover';
|
||||
|
||||
export { UpvotePopover };
|
||||
export default UpvotePopover;
|
Loading…
Reference in New Issue
Block a user