mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
chore: update toast style
This commit is contained in:
parent
ca9590a49b
commit
9036dd1a95
@ -51,7 +51,7 @@ const MemberListView: React.FC<Props> = (props: Props) => {
|
|||||||
showCommonDialog({
|
showCommonDialog({
|
||||||
title: "Delete Workspace Member",
|
title: "Delete Workspace Member",
|
||||||
content: `Are you sure to delete member \`${workspaceUser.name}\` in this workspace?`,
|
content: `Are you sure to delete member \`${workspaceUser.name}\` in this workspace?`,
|
||||||
style: "warning",
|
style: "danger",
|
||||||
onConfirm: async () => {
|
onConfirm: async () => {
|
||||||
await deleteWorkspaceUser({
|
await deleteWorkspaceUser({
|
||||||
workspaceId: workspaceId,
|
workspaceId: workspaceId,
|
||||||
|
@ -41,7 +41,7 @@ const ShortcutListView: React.FC<Props> = (props: Props) => {
|
|||||||
showCommonDialog({
|
showCommonDialog({
|
||||||
title: "Delete Shortcut",
|
title: "Delete Shortcut",
|
||||||
content: `Are you sure to delete shortcut \`${shortcut.name}\` in this workspace?`,
|
content: `Are you sure to delete shortcut \`${shortcut.name}\` in this workspace?`,
|
||||||
style: "warning",
|
style: "danger",
|
||||||
onConfirm: async () => {
|
onConfirm: async () => {
|
||||||
await shortcutService.deleteShortcutById(shortcut.id);
|
await shortcutService.deleteShortcutById(shortcut.id);
|
||||||
},
|
},
|
||||||
|
@ -31,7 +31,7 @@ const WorkspaceListView: React.FC<Props> = (props: Props) => {
|
|||||||
showCommonDialog({
|
showCommonDialog({
|
||||||
title: "Delete Workspace",
|
title: "Delete Workspace",
|
||||||
content: `Are you sure to delete workspace \`${workspace.name}\`?`,
|
content: `Are you sure to delete workspace \`${workspace.name}\`?`,
|
||||||
style: "warning",
|
style: "danger",
|
||||||
onConfirm: async () => {
|
onConfirm: async () => {
|
||||||
await workspaceService.deleteWorkspaceById(workspace.id);
|
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">
|
<div className="w-full flex flex-col justify-start items-start">
|
||||||
<p className="text-3xl mt-4 mb-4">{workspace.name}</p>
|
<p className="text-3xl mt-4 mb-4">{workspace.name}</p>
|
||||||
<p className="mb-4">{workspace.description}</p>
|
<p className="mb-4">{workspace.description || "No description."}</p>
|
||||||
<div className="border-t pt-4 mt-2 flex flex-row justify-start items-center">
|
<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">
|
<div className="flex flex-row justify-start items-center space-x-2">
|
||||||
{workspaceUser.role === "ADMIN" ? (
|
{workspaceUser.role === "ADMIN" ? (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user