Skip to content

Commit

Permalink
fix: path and icon
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Aug 3, 2024
1 parent 624715f commit 14b841d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/common/ErrorElement.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { repository } from '@pkg'
import { useEffect, useRef } from 'react'
import { isRouteErrorResponse, useRouteError } from 'react-router-dom'
import { repository } from '@pkg'

import { attachOpenInEditor } from '~/utils/dev'

Expand Down Expand Up @@ -35,7 +35,7 @@ export function ErrorElement() {
<div className="m-auto flex min-h-full max-w-prose select-text flex-col p-8 pt-12">
<div className="fixed inset-x-0 top-0 h-12" />
<div className="center flex flex-col">
<i className="i-mgc-bug-cute-re size-12 text-red-400" />
<i className="i-mingcute-bug-fill size-12 text-red-400" />
<h2 className="mt-12 text-2xl">
Sorry, the app has encountered an error
</h2>
Expand All @@ -61,7 +61,7 @@ export function ErrorElement() {
<p className="mt-8">
Still having this issue? Please give feedback in Github, thanks!
<a
className="ml-2 cursor-pointer text-theme-accent-500 duration-200 hover:text-theme-accent"
className="text-theme-accent-500 hover:text-theme-accent ml-2 cursor-pointer duration-200"
href={`${repository.url}/issues/new?title=${encodeURIComponent(
`Error: ${message}`,
)}&body=${encodeURIComponent(
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const LoadingCircle: Component<LoadingCircleProps> = ({
size,
}) => (
<div className={clsxm(sizeMap[size], className)}>
<i className="i-mgc-loading-3-cute-re animate-spin" />
<i className="i-mingcute-loading-3-line animate-spin" />
</div>
)
5 changes: 1 addition & 4 deletions src/utils/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ export const attachOpenInEditor = (stack: string) => {
<div
className="cursor-pointer"
key={line}
onClick={openInEditor.bind(
null,
`${APP_DEV_CWD}/src/renderer/src${fs}`,
)}
onClick={openInEditor.bind(null, `${APP_DEV_CWD}/src${fs}`)}
>
{line}
</div>
Expand Down

0 comments on commit 14b841d

Please sign in to comment.