feat(ui): "CopyWorkflowLinkModal" -> "ShareWorkflowModal"

This commit is contained in:
psychedelicious
2024-10-10 13:15:48 +10:00
parent ac2476c63c
commit aa34dbe1e1
3 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ import DeleteImageModal from 'features/deleteImageModal/components/DeleteImageMo
import { DynamicPromptsModal } from 'features/dynamicPrompts/components/DynamicPromptsPreviewModal';
import DeleteBoardModal from 'features/gallery/components/Boards/DeleteBoardModal';
import { useStarterModelsToast } from 'features/modelManagerV2/hooks/useStarterModelsToast';
import { CopyWorkflowLinkModal } from 'features/nodes/components/sidePanel/WorkflowListMenu/CopyWorkflowLinkModal';
import { ShareWorkflowModal } from 'features/nodes/components/sidePanel/WorkflowListMenu/ShareWorkflowModal';
import { ClearQueueConfirmationsAlertDialog } from 'features/queue/components/ClearQueueConfirmationAlertDialog';
import { DeleteStylePresetDialog } from 'features/stylePresets/components/DeleteStylePresetDialog';
import { StylePresetModal } from 'features/stylePresets/components/StylePresetForm/StylePresetModal';
@@ -114,7 +114,7 @@ const App = ({ config = DEFAULT_CONFIG, studioInitAction }: Props) => {
<NewWorkflowConfirmationAlertDialog />
<DeleteStylePresetDialog />
<DeleteWorkflowDialog />
<CopyWorkflowLinkModal />
<ShareWorkflowModal />
<RefreshAfterResetModal />
<DeleteBoardModal />
<GlobalImageHotkeys />

View File

@@ -32,7 +32,7 @@ export const useShareWorkflow = () => {
return copyWorkflowLink;
};
export const CopyWorkflowLinkModal = () => {
export const ShareWorkflowModal = () => {
const workflowToShare = useStore($workflowToShare);
const projectUrl = useStore($projectUrl);
const { t } = useTranslation();

View File

@@ -14,7 +14,7 @@ import { useTranslation } from 'react-i18next';
import { PiDownloadSimpleBold, PiPencilBold, PiShareFatBold, PiTrashBold } from 'react-icons/pi';
import type { WorkflowRecordListItemDTO } from 'services/api/types';
import { useShareWorkflow } from './CopyWorkflowLinkModal';
import { useShareWorkflow } from './ShareWorkflowModal';
import { WorkflowListItemTooltip } from './WorkflowListItemTooltip';
export const WorkflowListItem = ({ workflow }: { workflow: WorkflowRecordListItemDTO }) => {