mirror of
https://github.com/dergigi/boris.git
synced 2025-12-30 04:54:49 +01:00
refactor: replace IconButton with plain icon for clear cache trash button
This commit is contained in:
@@ -6,7 +6,6 @@ import { usePWAInstall } from '../../hooks/usePWAInstall'
|
||||
import { useIsMobile } from '../../hooks/useMediaQuery'
|
||||
import { UserSettings } from '../../services/settingsService'
|
||||
import { getImageCacheStatsAsync, clearImageCache } from '../../services/imageCacheService'
|
||||
import IconButton from '../IconButton'
|
||||
|
||||
interface PWASettingsProps {
|
||||
settings: UserSettings
|
||||
@@ -111,12 +110,11 @@ const PWASettings: React.FC<PWASettingsProps> = ({ settings, onUpdate, onClose }
|
||||
/>
|
||||
MB used )
|
||||
</span>
|
||||
<IconButton
|
||||
<FontAwesomeIcon
|
||||
icon={faTrash}
|
||||
onClick={handleClearCache}
|
||||
title="Clear cache"
|
||||
variant="ghost"
|
||||
size={20}
|
||||
style={{ cursor: 'pointer', fontSize: '0.85rem', opacity: 0.7 }}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user