{field.label}
{field.help}
}
size="sm"
borderless
aria-label={t('Notification Settings')}
data-test-id="fine-tuning"
to={`/settings/account/notifications/${NOTIFICATION_SETTINGS_PATHNAMES[type]}/`}
/>
);
};
const legacyFields = SELF_NOTIFICATION_SETTINGS_TYPES.map(
type => NOTIFICATION_SETTING_FIELDS[type] as FieldObject
);
// use 0 as stale time because we change the values elsewhere
const {
data: initialLegacyData,
isLoading,
isError,
isSuccess,
refetch,
} = useApiQuery<{[key: string]: string}>(['/users/me/notifications/'], {
staleTime: 0,
});
return (