diff --git a/README.md b/README.md index 751fea7..a23516a 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,11 @@ ## What is Likit Likit is a backend as a service for like(vote, unlike, count) feature. It is very ease to deploy and use. +# Screenshots + +![](./img/screenshot-1.png) +![](./img/screenshot-2.png) + # Deloyment ## Zeabur diff --git a/dashboard/src/pages/business/workplace/business-editor.tsx b/dashboard/src/pages/business/workplace/business-editor.tsx index b2d01e0..4f6c466 100644 --- a/dashboard/src/pages/business/workplace/business-editor.tsx +++ b/dashboard/src/pages/business/workplace/business-editor.tsx @@ -12,6 +12,7 @@ import { import styles from './style/overview.module.less'; import { BusinessType } from './type'; import axios from 'axios'; +import { toast } from 'sonner'; const { Row, Col } = Grid; @@ -55,7 +56,9 @@ const BusinessEditor = ({business}:BusinessEditorProps) => { content: 'This action cannot be undone.', onOk: () => { axios.delete(`/admin/v1/business?id=${business.id}`).then((res)=>{ - console.log(res) + toast.success('Delete business successfully!') + // refresh the page + window.location.reload(); }) }, }); diff --git a/img/screenshot-1.png b/img/screenshot-1.png new file mode 100644 index 0000000..bdd4294 Binary files /dev/null and b/img/screenshot-1.png differ diff --git a/img/screenshot-2.png b/img/screenshot-2.png new file mode 100644 index 0000000..bc595f3 Binary files /dev/null and b/img/screenshot-2.png differ