-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add delete account frontend #532
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor change
ssr/src/page/account_help.rs
Outdated
let show_confirm_perma_delete_modal = create_rw_signal(false); | ||
|
||
view! { | ||
<ShadowOverlay show=show_confirm_delete_modal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move the delete modal to a separate component so the AccountHelp component is easier to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aye, on it
ssr/src/page/account_help.rs
Outdated
view! { | ||
<ShadowOverlay show=show_confirm_delete_modal> | ||
<ShadowOverlay show=show> | ||
<div class="flex flex-col gap-4 p-6 mx-6 w-full lg:w-1/2 max-h-[65%] rounded-xl bg-neutral-900"> | ||
<h2 class="text-white font-bold text-2xl text-center">Are you sure you want to delete your account?</h2> | ||
<a class="bg-[#E2017B] text-white px-0 py-3 rounded-full text-center" href="/logout">Yes</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use pre-existing color classes instead of hardcoding
bg-primary-600
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
understood
ssr/src/page/account_help.rs
Outdated
#[component] | ||
fn ConfirmPermaDeleteModal(#[prop(into)] show: RwSignal<bool>) -> impl IntoView { | ||
view! { | ||
<ShadowOverlay show=show> | ||
<div class="flex flex-col gap-4 p-6 mx-6 w-full lg:w-1/2 max-h-[65%] rounded-xl bg-neutral-900"> | ||
<h2 class="text-white font-bold text-2xl text-center">Do you want to permanently delete your account?</h2> | ||
<button class="bg-[#E2017B] text-white px-0 py-3 rounded-full" on:click=move |_| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@tushar-saxena-yral this is ready to merge right? |
The frontend is ready, but the perma delete flow is not worked on at all. so i am not sure if it makes sense to merge it right now |
Closes yral-dapp/hot-or-not-backend-canister#429