chore: update toast style

prod
Steven 2 years ago
parent ca9590a49b
commit 9036dd1a95

@ -51,7 +51,7 @@ const MemberListView: React.FC<Props> = (props: Props) => {
showCommonDialog({
title: "Delete Workspace Member",
content: `Are you sure to delete member \`${workspaceUser.name}\` in this workspace?`,
style: "warning",
style: "danger",
onConfirm: async () => {
await deleteWorkspaceUser({
workspaceId: workspaceId,

@ -41,7 +41,7 @@ const ShortcutListView: React.FC<Props> = (props: Props) => {
showCommonDialog({
title: "Delete Shortcut",
content: `Are you sure to delete shortcut \`${shortcut.name}\` in this workspace?`,
style: "warning",
style: "danger",
onConfirm: async () => {
await shortcutService.deleteShortcutById(shortcut.id);
},

@ -31,7 +31,7 @@ const WorkspaceListView: React.FC<Props> = (props: Props) => {
showCommonDialog({
title: "Delete Workspace",
content: `Are you sure to delete workspace \`${workspace.name}\`?`,
style: "warning",
style: "danger",
onConfirm: async () => {
await workspaceService.deleteWorkspaceById(workspace.id);
},

@ -88,8 +88,8 @@ const WorkspaceSetting: React.FC<Props> = (props: Props) => {
<>
<div className="w-full flex flex-col justify-start items-start">
<p className="text-3xl mt-4 mb-4">{workspace.name}</p>
<p className="mb-4">{workspace.description}</p>
<div className="border-t pt-4 mt-2 flex flex-row justify-start items-center">
<p className="mb-4">{workspace.description || "No description."}</p>
<div className="border-t pt-4 flex flex-row justify-start items-center">
<div className="flex flex-row justify-start items-center space-x-2">
{workspaceUser.role === "ADMIN" ? (
<>

Loading…
Cancel
Save