Rename dialog

This commit is contained in:
Eric Bailey
2024-08-09 15:32:52 -05:00
parent 8fa02dda80
commit e5a678dee8
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ import {Earth_Stroke2_Corner0_Rounded as Earth} from '#/components/icons/Globe'
import {Group3_Stroke2_Corner0_Rounded as Group} from '#/components/icons/Group' import {Group3_Stroke2_Corner0_Rounded as Group} from '#/components/icons/Group'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
import {TextLink} from '../view/com/util/Link' import {TextLink} from '../view/com/util/Link'
import {ThreadgateEditorDialog} from './dialogs/ThreadgateEditor' import {PostInteractionSettingsDialog} from './dialogs/PostInteractionSettingsDialog'
import {PencilLine_Stroke2_Corner0_Rounded as PencilLine} from './icons/Pencil' import {PencilLine_Stroke2_Corner0_Rounded as PencilLine} from './icons/Pencil'
interface WhoCanReplyProps { interface WhoCanReplyProps {
@@ -217,7 +217,7 @@ export function WhoCanReply({
</Button> </Button>
{isThreadAuthor ? ( {isThreadAuthor ? (
<ThreadgateEditorDialog <PostInteractionSettingsDialog
onSave={onSave} onSave={onSave}
isSaving={isSaving} isSaving={isSaving}
postgate={postgate} postgate={postgate}
@@ -30,7 +30,7 @@ type Props = {
onChangeThreadgateAllowUISettings: (v: ThreadgateAllowUISetting[]) => void onChangeThreadgateAllowUISettings: (v: ThreadgateAllowUISetting[]) => void
} }
export function ThreadgateEditorDialog({ export function PostInteractionSettingsDialog({
control, control,
...rest ...rest
}: Props & { }: Props & {
@@ -12,7 +12,7 @@ import {useAnalytics} from 'lib/analytics/analytics'
import {atoms as a, useTheme} from '#/alf' import {atoms as a, useTheme} from '#/alf'
import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import * as Dialog from '#/components/Dialog' import * as Dialog from '#/components/Dialog'
import {ThreadgateEditorDialog} from '#/components/dialogs/ThreadgateEditor' import {PostInteractionSettingsDialog} from '#/components/dialogs/PostInteractionSettingsDialog'
import {CircleBanSign_Stroke2_Corner0_Rounded as CircleBanSign} from '#/components/icons/CircleBanSign' import {CircleBanSign_Stroke2_Corner0_Rounded as CircleBanSign} from '#/components/icons/CircleBanSign'
import {Earth_Stroke2_Corner0_Rounded as Earth} from '#/components/icons/Globe' import {Earth_Stroke2_Corner0_Rounded as Earth} from '#/components/icons/Globe'
import {Group3_Stroke2_Corner0_Rounded as Group} from '#/components/icons/Group' import {Group3_Stroke2_Corner0_Rounded as Group} from '#/components/icons/Group'
@@ -90,7 +90,7 @@ export function ThreadgateBtn({
<ButtonText>{label}</ButtonText> <ButtonText>{label}</ButtonText>
</Button> </Button>
</Animated.View> </Animated.View>
<ThreadgateEditorDialog <PostInteractionSettingsDialog
control={control} control={control}
isSaving={false} isSaving={false}
onSave={() => { onSave={() => {