More typing
This commit is contained in:
@@ -4,7 +4,19 @@ import { useState } from 'react';
|
||||
import { FiAlertCircle } from 'react-icons/fi';
|
||||
import { actionIconClasses, boxClasses, textClasses } from 'styles';
|
||||
|
||||
function AppSettingsItem({ url, icon, name, enabled, allIcons }: any) {
|
||||
function AppSettingsItem({
|
||||
url,
|
||||
icon,
|
||||
name,
|
||||
enabled,
|
||||
allIcons,
|
||||
}: {
|
||||
url: string;
|
||||
icon: string;
|
||||
name: string;
|
||||
enabled: number;
|
||||
allIcons: any;
|
||||
}) {
|
||||
const Icon = allIcons[icon];
|
||||
const [textDecoration, setTextDecoration] = useState<string>('none');
|
||||
const [hover, setHover] = useState<boolean>(false);
|
||||
|
||||
Reference in New Issue
Block a user