Skip to content

fix: app detail modal color and placeholder #804

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/mochi-web/components/app/DeleteAppModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export const DeleteAppModal = ({
<ModalContent className="w-full max-w-sm">
<form onSubmit={handleSubmit(onDeleteApp)}>
<div className="flex flex-col items-center">
<div className="flex items-center justify-center p-3 border-8 rounded-full w-fit bg-danger-outline-border border-danger-outline">
<AlertCircleLine className="w-6 h-6 text-danger-solid" />
<div className="flex items-center justify-center p-3 border-8 rounded-full w-fit bg-danger-outline-active border-danger-outline-hover">
<AlertCircleLine className="w-6 h-6 text-danger-outline-fg" />
</div>
<Typography level="h6" className="mt-5">
Delete {name}
Expand All @@ -127,7 +127,7 @@ export const DeleteAppModal = ({
<FormControl error={!!fieldState.error} className="mt-5">
<FormLabel>App name</FormLabel>
<TextFieldRoot>
<TextFieldInput {...field} placeholder="<App name>" />
<TextFieldInput {...field} placeholder={name} />
</TextFieldRoot>
<FormHelperText>
To delete this app, please confirm the name.
Expand Down
2 changes: 1 addition & 1 deletion apps/mochi-web/components/app/detail/ResetKeyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const ResetKeyModal = ({ trigger, onConfirm }: Props) => {
<ModalOverlay />
<ModalContent className="w-full max-w-sm">
<div className="flex flex-col items-center">
<div className="flex items-center justify-center p-3 border-8 rounded-full w-fit bg-warning-outline-border border-warning-outline">
<div className="flex items-center justify-center p-3 border-8 rounded-full w-fit bg-warning-outline-active border-warning-outline-hover">
<AlertTriangleLine className="w-6 h-6 text-warning-solid" />
</div>
<Typography level="h6" className="mt-5">
Expand Down