Skip to content

Commit

Permalink
chore(doc): update the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH committed Dec 5, 2023
1 parent 8ea3817 commit 4daa35d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion dashboard/src/pages/business/workplace/business-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
})
},
});
Expand Down
Binary file added img/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4daa35d

Please sign in to comment.