Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Jan 28, 2025
1 parent 8d64541 commit feff641
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useNavigate } from '@tanstack/react-router';
import * as React from 'react';
import { useHistory } from 'react-router-dom';

import LinodeIcon from 'src/assets/icons/entityIcons/linode.svg';
import { ResourcesSection } from 'src/components/EmptyLandingPageResources/ResourcesSection';
Expand All @@ -15,8 +15,7 @@ import {
} from './ImagesLandingEmptyStateData';

export const ImagesLandingEmptyState = () => {
const { push } = useHistory();

const navigate = useNavigate();
const isImagesReadOnly = useRestrictedGlobalGrantCheck({
globalGrantType: 'add_images',
});
Expand All @@ -33,7 +32,9 @@ export const ImagesLandingEmptyState = () => {
category: linkAnalyticsEvent.category,
label: 'Create Image',
});
push('/images/create');
navigate({
to: '/images/create',
});
},
tooltipText: getRestrictedResourceText({
action: 'create',
Expand Down

0 comments on commit feff641

Please sign in to comment.