Rename dialog
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
+1
-1
@@ -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={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user