chore: update toast style

This commit is contained in:
Steven 2022-11-13 10:29:17 +08:00
parent ca9590a49b
commit 9036dd1a95
4 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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);
},

View File

@ -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);
},

View File

@ -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" ? (
<>