0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Moved NewPostModal component to the Feed page (#22199)

ref AP-744

- NewPostModal component is only used in Feed
- For that reason, this should be placed with the Feed component itself
in view directory
- Inbox and Feed components are still in a single file at the moment as
the separation isn't in the context of file structure updates
- Once componets are separated into smaller ones, Feed directory will be
populated with the corresponding files
This commit is contained in:
Sodbileg Gansukh 2025-02-17 13:51:47 +08:00 committed by GitHub
parent 0476bb1cb9
commit 13c5c5ff17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1,9 +1,9 @@
import * as FormPrimitive from '@radix-ui/react-form'; import * as FormPrimitive from '@radix-ui/react-form';
import APAvatar from '../global/APAvatar'; import APAvatar from '@components/global/APAvatar';
import NiceModal, {useModal} from '@ebay/nice-modal-react'; import NiceModal, {useModal} from '@ebay/nice-modal-react';
import {ActorProperties} from '@tryghost/admin-x-framework/api/activitypub'; import {ActorProperties} from '@tryghost/admin-x-framework/api/activitypub';
import {Modal, showToast} from '@tryghost/admin-x-design-system'; import {Modal, showToast} from '@tryghost/admin-x-design-system';
import {useNoteMutationForUser, useUserDataForUser} from '../../hooks/useActivityPubQueries'; import {useNoteMutationForUser, useUserDataForUser} from '@hooks/useActivityPubQueries';
import {useState} from 'react'; import {useState} from 'react';
const NewPostModal = NiceModal.create(() => { const NewPostModal = NiceModal.create(() => {

View file

@ -3,7 +3,7 @@ import ActivityItem from '@components/activities/ActivityItem';
import ActivityPubWelcomeImage from '@assets/images/ap-welcome.png'; import ActivityPubWelcomeImage from '@assets/images/ap-welcome.png';
import FeedItem from '@components/feed/FeedItem'; import FeedItem from '@components/feed/FeedItem';
import MainNavigation from '@components/navigation/MainNavigation'; import MainNavigation from '@components/navigation/MainNavigation';
import NewPostModal from '@components/modals/NewPostModal'; import NewPostModal from '@views/Feed/components/NewPostModal';
import NiceModal from '@ebay/nice-modal-react'; import NiceModal from '@ebay/nice-modal-react';
import React, {useEffect, useRef} from 'react'; import React, {useEffect, useRef} from 'react';
import Separator from '@components/global/Separator'; import Separator from '@components/global/Separator';