@@ -22,6 +22,7 @@ import {
2222 setEnvironmentToDelete ,
2323 setIsSidebarOpen
2424} from "../../../redux/slices/environmentsSlice" ;
25+ import { useConfigSelector } from "../../../store/config/useConfigSelector" ;
2526import { FeatureFlag } from "../../../types" ;
2627import { sortEnvironments } from "../../common/IssuesReport/utils" ;
2728import { Pagination } from "../../common/v3/Pagination" ;
@@ -37,6 +38,7 @@ const columnHelper = createColumnHelper<Environment>();
3738export const Environments = ( ) => {
3839 const containerRef = useRef < HTMLDivElement > ( null ) ;
3940 const { data : about } = useGetAboutQuery ( ) ;
41+ const { isSandboxModeEnabled } = useConfigSelector ( ) ;
4042 const isCreateEnvironmentSidebarOpen = useAdminSelector (
4143 ( state ) => state . environmentsSlice . isSidebarOpen
4244 ) ;
@@ -63,7 +65,7 @@ export const Environments = () => {
6365 columnHelper . accessor ( "name" , {
6466 header : "Name" ,
6567 meta : {
66- width : isEnvironmentLastActiveTimestampEnabled ? "60%" : "80 %",
68+ width : "100 %",
6769 minWidth : 60
6870 } ,
6971 cell : ( info ) => {
@@ -103,18 +105,22 @@ export const Environments = () => {
103105 return < s . EnvironmentType > { value } </ s . EnvironmentType > ;
104106 }
105107 } ) ,
106- columnHelper . accessor ( ( row ) => row , {
107- header : "Actions" ,
108- meta : {
109- width : "10%" ,
110- minWidth : 60 ,
111- textAlign : "right"
112- } ,
113- cell : ( info ) => {
114- const value = info . getValue ( ) ;
115- return < ActionsMenuButton environment = { value } /> ;
116- }
117- } )
108+ ...( isSandboxModeEnabled
109+ ? [ ]
110+ : [
111+ columnHelper . accessor ( ( row ) => row , {
112+ header : "Actions" ,
113+ meta : {
114+ width : "10%" ,
115+ minWidth : 60 ,
116+ textAlign : "right"
117+ } ,
118+ cell : ( info ) => {
119+ const value = info . getValue ( ) ;
120+ return < ActionsMenuButton environment = { value } /> ;
121+ }
122+ } )
123+ ] )
118124 ] ;
119125
120126 const table = useReactTable ( {
0 commit comments