Merge branch 'organize-modals' into 'develop'
Organize modals into modals/ subfolder See merge request soapbox-pub/soapbox!1897
This commit is contained in:
commit
d0f3b52203
23 changed files with 27 additions and 27 deletions
|
@ -8,7 +8,7 @@ import StatusContent from 'soapbox/components/status-content';
|
||||||
import { Stack } from 'soapbox/components/ui';
|
import { Stack } from 'soapbox/components/ui';
|
||||||
import AccountContainer from 'soapbox/containers/account-container';
|
import AccountContainer from 'soapbox/containers/account-container';
|
||||||
|
|
||||||
import Motion from '../util/optional-motion';
|
import Motion from '../../util/optional-motion';
|
||||||
|
|
||||||
import type { Menu, MenuItem } from 'soapbox/components/dropdown-menu';
|
import type { Menu, MenuItem } from 'soapbox/components/dropdown-menu';
|
||||||
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
|
@ -7,7 +7,7 @@ import { checkComposeContent } from 'soapbox/components/modal-root';
|
||||||
import { Modal } from 'soapbox/components/ui';
|
import { Modal } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
import { useAppDispatch, useCompose } from 'soapbox/hooks';
|
||||||
|
|
||||||
import ComposeForm from '../../compose/components/compose-form';
|
import ComposeForm from '../../../compose/components/compose-form';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
close: { id: 'lightbox.close', defaultMessage: 'Close' },
|
close: { id: 'lightbox.close', defaultMessage: 'Close' },
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import { Modal } from 'soapbox/components/ui';
|
import { Modal } from 'soapbox/components/ui';
|
||||||
import DetailedCryptoAddress from 'soapbox/features/crypto-donate/components/detailed-crypto-address';
|
import DetailedCryptoAddress from 'soapbox/features/crypto-donate/components/detailed-crypto-address';
|
||||||
|
|
||||||
import type { ICryptoAddress } from '../../crypto-donate/components/crypto-address';
|
import type { ICryptoAddress } from '../../../crypto-donate/components/crypto-address';
|
||||||
|
|
||||||
const CryptoDonateModal: React.FC<ICryptoAddress & { onClose: () => void }> = ({ onClose, ...props }) => {
|
const CryptoDonateModal: React.FC<ICryptoAddress & { onClose: () => void }> = ({ onClose, ...props }) => {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import IconButton from 'soapbox/components/icon-button';
|
||||||
import Audio from 'soapbox/features/audio';
|
import Audio from 'soapbox/features/audio';
|
||||||
import Video from 'soapbox/features/video';
|
import Video from 'soapbox/features/video';
|
||||||
|
|
||||||
import ImageLoader from './image-loader';
|
import ImageLoader from '../image-loader';
|
||||||
|
|
||||||
import type { List as ImmutableList } from 'immutable';
|
import type { List as ImmutableList } from 'immutable';
|
||||||
import type { Account, Attachment, Status } from 'soapbox/types/entities';
|
import type { Account, Attachment, Status } from 'soapbox/types/entities';
|
|
@ -6,7 +6,7 @@ import { useAppSelector, useCompose } from 'soapbox/hooks';
|
||||||
import { statusToMentionsAccountIdsArray } from 'soapbox/reducers/compose';
|
import { statusToMentionsAccountIdsArray } from 'soapbox/reducers/compose';
|
||||||
import { makeGetStatus } from 'soapbox/selectors';
|
import { makeGetStatus } from 'soapbox/selectors';
|
||||||
|
|
||||||
import Account from '../../reply-mentions/account';
|
import Account from '../../../reply-mentions/account';
|
||||||
|
|
||||||
import type { Account as AccountEntity, Status as StatusEntity } from 'soapbox/types/entities';
|
import type { Account as AccountEntity, Status as StatusEntity } from 'soapbox/types/entities';
|
||||||
|
|
|
@ -95,7 +95,7 @@ export function Mutes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MuteModal() {
|
export function MuteModal() {
|
||||||
return import(/* webpackChunkName: "modals/mute_modal" */'../components/mute-modal');
|
return import(/* webpackChunkName: "modals/mute_modal" */'../components/modals/mute-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Filters() {
|
export function Filters() {
|
||||||
|
@ -123,59 +123,59 @@ export function Audio() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MediaModal() {
|
export function MediaModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/media-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/media-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function VideoModal() {
|
export function VideoModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/video-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/video-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BoostModal() {
|
export function BoostModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/boost-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/boost-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ConfirmationModal() {
|
export function ConfirmationModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/confirmation-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/confirmation-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MissingDescriptionModal() {
|
export function MissingDescriptionModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/missing-description-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/missing-description-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ActionsModal() {
|
export function ActionsModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/actions-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/actions-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function HotkeysModal() {
|
export function HotkeysModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/hotkeys-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/hotkeys-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ComposeModal() {
|
export function ComposeModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/compose-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/compose-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReplyMentionsModal() {
|
export function ReplyMentionsModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/reply-mentions-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/reply-mentions-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function UnauthorizedModal() {
|
export function UnauthorizedModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/unauthorized-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/unauthorized-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EditFederationModal() {
|
export function EditFederationModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/edit-federation-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/edit-federation-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function EmbedModal() {
|
export function EmbedModal() {
|
||||||
return import(/* webpackChunkName: "modals/embed_modal" */'../components/embed-modal');
|
return import(/* webpackChunkName: "modals/embed_modal" */'../components/modals/embed-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ComponentModal() {
|
export function ComponentModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/component-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/component-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReblogsModal() {
|
export function ReblogsModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/reblogs-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/reblogs-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FavouritesModal() {
|
export function FavouritesModal() {
|
||||||
|
@ -183,11 +183,11 @@ export function FavouritesModal() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ReactionsModal() {
|
export function ReactionsModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/reactions-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/reactions-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function MentionsModal() {
|
export function MentionsModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/mentions-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/mentions-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function LandingPageModal() {
|
export function LandingPageModal() {
|
||||||
|
@ -195,7 +195,7 @@ export function LandingPageModal() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BirthdaysModal() {
|
export function BirthdaysModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/birthdays-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/birthdays-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function BirthdayPanel() {
|
export function BirthdayPanel() {
|
||||||
|
@ -203,7 +203,7 @@ export function BirthdayPanel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AccountNoteModal() {
|
export function AccountNoteModal() {
|
||||||
return import(/* webpackChunkName: "features/ui" */'../components/account-note-modal');
|
return import(/* webpackChunkName: "features/ui" */'../components/modals/account-note-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ListEditor() {
|
export function ListEditor() {
|
||||||
|
@ -399,7 +399,7 @@ export function CryptoAddress() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CryptoDonateModal() {
|
export function CryptoDonateModal() {
|
||||||
return import(/* webpackChunkName: "features/crypto_donate" */'../components/crypto-donate-modal');
|
return import(/* webpackChunkName: "features/crypto_donate" */'../components/modals/crypto-donate-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ScheduledStatuses() {
|
export function ScheduledStatuses() {
|
||||||
|
@ -487,7 +487,7 @@ export function WaitlistPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CompareHistoryModal() {
|
export function CompareHistoryModal() {
|
||||||
return import(/*webpackChunkName: "modals/compare_history_modal" */'../components/compare-history-modal');
|
return import(/*webpackChunkName: "modals/compare_history_modal" */'../components/modals/compare-history-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AuthTokenList() {
|
export function AuthTokenList() {
|
||||||
|
@ -499,7 +499,7 @@ export function VerifySmsModal() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FamiliarFollowersModal() {
|
export function FamiliarFollowersModal() {
|
||||||
return import(/*webpackChunkName: "modals/familiar_followers_modal" */'../components/familiar-followers-modal');
|
return import(/*webpackChunkName: "modals/familiar_followers_modal" */'../components/modals/familiar-followers-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AnnouncementsPanel() {
|
export function AnnouncementsPanel() {
|
||||||
|
|
Loading…
Reference in a new issue