@@ -22,7 +22,6 @@ function ChannelIcon({ channel }: { readonly channel: GuildChannelInfo | Possibl
2222export function AMADetails ( ) {
2323 const params = useParams < { amaId : string ; id : string } > ( ) ;
2424 const router = useRouter ( ) ;
25- const [ isEndingAMA , setIsEndingAMA ] = useState ( false ) ;
2625 const [ showEndConfirm , setShowEndConfirm ] = useState ( false ) ;
2726
2827 const { data : ama , isLoading } = client . guilds . ama . useAMA ( params . id , params . amaId ) ;
@@ -52,13 +51,11 @@ export function AMADetails() {
5251 }
5352
5453 try {
55- setIsEndingAMA ( true ) ;
5654 await updateAMA . mutateAsync ( { ended : true } ) ;
5755 router . push ( `/dashboard/${ params . id } /ama/amas` ) ;
5856 } catch ( error ) {
5957 console . error ( 'Failed to end AMA:' , error ) ;
6058 } finally {
61- setIsEndingAMA ( false ) ;
6259 setShowEndConfirm ( false ) ;
6360 }
6461 } ;
@@ -177,7 +174,7 @@ export function AMADetails() {
177174 { ! ama . promptMessageExists && ! ama . ended && (
178175 < div className = "pt-2" >
179176 < Button
180- className = "px-6 py-3 bg-misc-accent text-white rounded-md hover:bg-misc-accent/90 transition-colors disabled:opacity-50"
177+ className = "bg-misc-accent text-white rounded-md hover:bg-misc-accent/90 transition-colors disabled:opacity-50"
181178 onPress = { handleRepostPrompt }
182179 type = "button"
183180 >
@@ -202,15 +199,14 @@ export function AMADetails() {
202199 </ p >
203200 < div className = "flex gap-3" >
204201 < Button
205- className = "px-6 py-3 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors disabled:opacity-50"
206- isDisabled = { isEndingAMA }
202+ className = "px-3 py-2.5 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors disabled:opacity-50"
207203 onPress = { handleEndAMA }
208204 type = "button"
209205 >
210- { isEndingAMA ? 'Ending...' : ' Yes, End AMA' }
206+ Yes, End AMA
211207 </ Button >
212208 < Button
213- className = "px-6 py-3 bg-on-tertiary dark:bg-on-tertiary-dark text-primary dark:text-primary-dark rounded-md hover:bg-on-secondary dark:hover:bg-on-secondary-dark transition-colors"
209+ className = "px-3 py-2.5 bg-on-tertiary dark:bg-on-tertiary-dark text-primary dark:text-primary-dark rounded-md hover:bg-on-secondary dark:hover:bg-on-secondary-dark transition-colors"
214210 onPress = { ( ) => setShowEndConfirm ( false ) }
215211 type = "button"
216212 >
@@ -224,7 +220,7 @@ export function AMADetails() {
224220 Ending an AMA will prevent new questions from being submitted. This action cannot be undone.
225221 </ p >
226222 < Button
227- className = "px-6 py-3 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors"
223+ className = "px-3 py-2.5 bg-misc-danger text-white rounded-md hover:bg-misc-danger/90 transition-colors"
228224 onPress = { handleEndAMA }
229225 type = "button"
230226 >
0 commit comments