File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/manager/apps/ips/src/pages/listing/ipListing Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { useTranslation } from 'react-i18next' ;
3+ import { useQueryClient } from '@tanstack/react-query' ;
34import { useNavigate , Outlet , useSearchParams } from 'react-router-dom' ;
45import { OdsButton , OdsText } from '@ovhcloud/ods-components/react' ;
56import {
@@ -24,10 +25,12 @@ export type DashboardTabItemProps = {
2425} ;
2526
2627export default function IpListingPage ( ) {
28+ const queryClient = useQueryClient ( ) ;
2729 const { environment } = React . useContext ( ShellContext ) ;
2830 const navigate = useNavigate ( ) ;
2931 const [ search ] = useSearchParams ( ) ;
3032 const { t } = useTranslation ( TRANSLATION_NAMESPACES . listing ) ;
33+
3134 return (
3235 < ListingContextProvider >
3336 < div className = "flex flex-col" >
@@ -56,6 +59,13 @@ export default function IpListingPage() {
5659 < div className = "flex flex-col flex-1 mr-2 md:mr-8 md:flex-row gap-2" >
5760 < IpFilter className = "min-w-[200px] max-w-[400px] flex-1" />
5861 < FilterService className = "min-w-[200px] max-w-[400px] flex-1" />
62+ < OdsButton
63+ variant = { ODS_BUTTON_VARIANT . outline }
64+ icon = { ODS_ICON_NAME . refresh }
65+ size = { ODS_BUTTON_SIZE . sm }
66+ onClick = { ( ) => queryClient . invalidateQueries ( ) }
67+ label = ""
68+ />
5969 </ div >
6070
6171 < div className = "flex flex-col items-end ml-auto gap-2" >
You can’t perform that action at this time.
0 commit comments