refactor: split frontend application features
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
83d14d23a2
commit
5d7a57fd00
32 changed files with 2563 additions and 2433 deletions
7
frontend/src/components/actions/errorMessage.ts
Normal file
7
frontend/src/components/actions/errorMessage.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { ApiError } from '../../api/client'
|
||||
|
||||
export function errorMessage(error: unknown) {
|
||||
return error instanceof ApiError || error instanceof Error
|
||||
? error.message
|
||||
: 'Something went wrong'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue