Skip to content

Commit

Permalink
fix: changed delete button color to match the ui (#2159)
Browse files Browse the repository at this point in the history
Co-authored-by: OGBONNA SUNDAY <[email protected]>
Co-authored-by: Nick Taylor <[email protected]>
  • Loading branch information
3 people authored Nov 17, 2023
1 parent 2edfa99 commit 6e7e3bd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions components/organisms/UserSettingsPage/user-settings-page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState, useEffect, useRef } from "react";
import clsx from "clsx";

import { RiArrowDownSLine, RiArrowUpSLine } from "react-icons/ri";
import { User } from "@supabase/supabase-js";
Expand Down Expand Up @@ -64,8 +65,11 @@ const DeleteAccountModal = ({ open, setOpen, onDelete }: DeleteAccountModalProps
<div className="flex gap-4">
<Button
type="submit"
className="w-max border-dark-red-8 bg-dark-red-8 text-white hover:border-dark-red-7 hover:bg-dark-red-7"
variant="primary"
className={clsx(
"bg-light-red-6 border border-light-red-8 hover:bg-light-red-7 text-light-red-10",
disabled && "cursor-not-allowed !bg-light-red-4 hover:!none !border-light-red-5 !text-light-red-8"
)}
variant="default"
onClick={() => {
if (!disabled) {
onDelete();
Expand Down Expand Up @@ -517,8 +521,8 @@ const UserSettingsPage = ({ user }: userSettingsPageProps) => {
type="submit"
rel="noopener noreferrer"
target="_blank"
className="w-max border-dark-red-8 bg-dark-red-8 text-white hover:border-dark-red-7 hover:bg-dark-red-7"
variant="primary"
className="w-max border bg-light-red-6 border-light-red-8 hover:bg-light-red-7 text-light-red-10"
variant="default"
>
Delete Account
</Button>
Expand Down

0 comments on commit 6e7e3bd

Please sign in to comment.