mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-01 03:01:13 -04:00
chore(ui): lint
This commit is contained in:
@@ -9,7 +9,7 @@ interface Props {
|
||||
nodeId: string;
|
||||
}
|
||||
|
||||
const InvocationNodeClassificationIcon = ({ nodeId }: Props) => {
|
||||
const InvocationNodeClassificationIcon = (_: Props) => {
|
||||
const classification = useNodeClassification();
|
||||
|
||||
if (!classification || classification === 'stable') {
|
||||
|
||||
@@ -25,7 +25,7 @@ export const InvocationNodeInfoIcon = memo(({ nodeId }: Props) => {
|
||||
|
||||
InvocationNodeInfoIcon.displayName = 'InvocationNodeInfoIcon';
|
||||
|
||||
const TooltipContent = memo(({ nodeId }: { nodeId: string }) => {
|
||||
const TooltipContent = memo((_: { nodeId: string }) => {
|
||||
const notes = useInvocationNodeNotes();
|
||||
const label = useNodeUserTitleSafe();
|
||||
const version = useNodeVersion();
|
||||
|
||||
@@ -41,7 +41,6 @@ InputFieldGate.displayName = 'InputFieldGate';
|
||||
|
||||
const Fallback = memo(
|
||||
({
|
||||
nodeId,
|
||||
fieldName,
|
||||
formatLabel,
|
||||
hasTemplate,
|
||||
|
||||
@@ -9,7 +9,7 @@ type Props = {
|
||||
fieldName: string;
|
||||
};
|
||||
|
||||
export const InputFieldResetToDefaultValueIconButton = memo(({ nodeId, fieldName }: Props) => {
|
||||
export const InputFieldResetToDefaultValueIconButton = memo(({ fieldName }: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const { isValueChanged, resetToDefaultValue } = useInputFieldDefaultValue(fieldName);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ interface Props {
|
||||
fieldName: string;
|
||||
}
|
||||
|
||||
export const InputFieldTooltipContent = memo(({ nodeId, fieldName }: Props) => {
|
||||
export const InputFieldTooltipContent = memo(({ fieldName }: Props) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const fieldInstance = useInputFieldInstance(fieldName);
|
||||
|
||||
@@ -23,7 +23,7 @@ export const OutputFieldGate = memo(({ nodeId, fieldName, children }: Props) =>
|
||||
|
||||
OutputFieldGate.displayName = 'OutputFieldGate';
|
||||
|
||||
const Fallback = memo(({ nodeId, fieldName }: Props) => {
|
||||
const Fallback = memo(({ fieldName }: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const name = useOutputFieldName(fieldName);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ interface Props {
|
||||
fieldName: string;
|
||||
}
|
||||
|
||||
export const OutputFieldTooltipContent = memo(({ nodeId, fieldName }: Props) => {
|
||||
export const OutputFieldTooltipContent = memo(({ fieldName }: Props) => {
|
||||
const fieldTemplate = useOutputFieldTemplate(fieldName);
|
||||
const fieldTypeName = useFieldTypeName(fieldTemplate.type);
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -27,7 +27,7 @@ const NodeTemplateInspector = () => {
|
||||
|
||||
export default memo(NodeTemplateInspector);
|
||||
|
||||
const Content = memo(({ nodeId }: { nodeId: string }) => {
|
||||
const Content = memo((_: { nodeId: string }) => {
|
||||
const { t } = useTranslation();
|
||||
const template = useNodeTemplateOrThrow();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user