mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-02 23:09:26 +02:00
fix(UI): icon imports in settings/update.tsx
This commit is contained in:
parent
df6247b425
commit
4425e02c3c
|
|
@ -1,13 +1,9 @@
|
||||||
import { Head } from '@inertiajs/react'
|
import { Head } from '@inertiajs/react'
|
||||||
import IconArrowBigUpLines from '@tabler/icons-react/dist/esm/icons/IconArrowBigUpLines'
|
|
||||||
import IconCheck from '@tabler/icons-react/dist/esm/icons/IconCheck'
|
|
||||||
import IconAlertCircle from '@tabler/icons-react/dist/esm/icons/IconAlertCircle'
|
|
||||||
import IconRefresh from '@tabler/icons-react/dist/esm/icons/IconRefresh'
|
|
||||||
import SettingsLayout from '~/layouts/SettingsLayout'
|
import SettingsLayout from '~/layouts/SettingsLayout'
|
||||||
import StyledButton from '~/components/StyledButton'
|
import StyledButton from '~/components/StyledButton'
|
||||||
import Alert from '~/components/Alert'
|
import Alert from '~/components/Alert'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { IconCircleCheck } from '@tabler/icons-react'
|
import { IconAlertCircle, IconArrowBigUpLines, IconCheck, IconCircleCheck, IconReload } from '@tabler/icons-react'
|
||||||
import { SystemUpdateStatus } from '../../../types/system'
|
import { SystemUpdateStatus } from '../../../types/system'
|
||||||
import api from '~/lib/api'
|
import api from '~/lib/api'
|
||||||
import Input from '~/components/inputs/Input'
|
import Input from '~/components/inputs/Input'
|
||||||
|
|
@ -121,7 +117,7 @@ export default function SystemUpdatePage(props: {
|
||||||
return <IconCheck className="h-12 w-12 text-desert-olive" />
|
return <IconCheck className="h-12 w-12 text-desert-olive" />
|
||||||
if (updateStatus?.stage === 'error')
|
if (updateStatus?.stage === 'error')
|
||||||
return <IconAlertCircle className="h-12 w-12 text-desert-red" />
|
return <IconAlertCircle className="h-12 w-12 text-desert-red" />
|
||||||
if (isUpdating) return <IconRefresh className="h-12 w-12 text-desert-green animate-spin" />
|
if (isUpdating) return <IconReload className="h-12 w-12 text-desert-green animate-spin" />
|
||||||
if (props.system.updateAvailable)
|
if (props.system.updateAvailable)
|
||||||
return <IconArrowBigUpLines className="h-16 w-16 text-desert-green" />
|
return <IconArrowBigUpLines className="h-16 w-16 text-desert-green" />
|
||||||
return <IconCircleCheck className="h-16 w-16 text-desert-olive" />
|
return <IconCircleCheck className="h-16 w-16 text-desert-olive" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user