Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Make the end session button more flexible #2404

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Feb 27, 2024

This removes the unnecessarily generic <ConfirmationModal /> and uses the Dialog components directly in the EndSessionButton.

It makes the button closer to the design

It also makes the loading indicator within the modal instead of the trigger

It makes it possible to have children in the EndSessionButton which will appear in the modal description. This will make it possible later to say which session is being ended.

There is a story to see the button in action: https://quenting-frontend-end-sessio.matrix-authentication-service-docs.pages.dev/storybook/?path=/story/ui-session-end-session-button--with-children

@sandhose sandhose added the A-Frontend Changes on the React frontend label Feb 27, 2024
Copy link

cloudflare-workers-and-pages bot commented Feb 27, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1af80c8
Status: ✅  Deploy successful!
Preview URL: https://9a6ebfbf.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-frontend-end-sessio.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose requested a review from t3chguy February 27, 2024 11:08
@sandhose sandhose merged commit a8d1f15 into main Feb 27, 2024
16 checks passed
@sandhose sandhose deleted the quenting/frontend/end-session-button branch February 28, 2024 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Frontend Changes on the React frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants