Changeset View
Changeset View
Standalone View
Standalone View
native/community-creation/community-configuration.react.js
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | function CommunityConfiguration(props: Props): React.Node { | ||||
]); | ]); | ||||
const createNewCommunity = React.useCallback(async () => { | const createNewCommunity = React.useCallback(async () => { | ||||
setErrorMessage(); | setErrorMessage(); | ||||
const newThreadResultPromise = callCreateNewCommunity(); | const newThreadResultPromise = callCreateNewCommunity(); | ||||
dispatchActionPromise(newThreadActionTypes, newThreadResultPromise); | dispatchActionPromise(newThreadActionTypes, newThreadResultPromise); | ||||
await newThreadResultPromise; | await newThreadResultPromise; | ||||
navigate(CommunityCreationMembersRouteName); | navigate<'CommunityCreationMembers'>({ | ||||
}, [callCreateNewCommunity, dispatchActionPromise, navigate]); | name: CommunityCreationMembersRouteName, | ||||
params: { announcement: announcementSetting }, | |||||
}); | |||||
}, [ | |||||
announcementSetting, | |||||
callCreateNewCommunity, | |||||
dispatchActionPromise, | |||||
navigate, | |||||
]); | |||||
const onCheckBoxPress = React.useCallback(() => { | const onCheckBoxPress = React.useCallback(() => { | ||||
setErrorMessage(); | setErrorMessage(); | ||||
setAnnouncementSetting(!announcementSetting); | setAnnouncementSetting(!announcementSetting); | ||||
}, [announcementSetting]); | }, [announcementSetting]); | ||||
let checkBoxFill; | let checkBoxFill; | ||||
if (announcementSetting) { | if (announcementSetting) { | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |