File tree Expand file tree Collapse file tree 6 files changed +80
-76
lines changed Expand file tree Collapse file tree 6 files changed +80
-76
lines changed Original file line number Diff line number Diff line change @@ -62,23 +62,6 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
62
62
usersSearch,
63
63
setUsersSearch
64
64
} ) => {
65
- console . log ( 'amit usersearchfield' , {
66
- usersData,
67
- setUsersData,
68
- label,
69
- setDisableSave,
70
- handleNotifyPref,
71
- notifyUpdate,
72
- isCreate,
73
- searchType,
74
- disabled,
75
- currentUserData,
76
- searchedUsers,
77
- isUserSearchLoading,
78
- fetchSearchedUsers,
79
- usersSearch,
80
- setUsersSearch
81
- } ) ;
82
65
const [ error , setError ] = useState ( '' ) ;
83
66
const [ open , setOpen ] = useState ( false ) ;
84
67
const [ showAllUsers , setShowAllUsers ] = useState ( false ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { formatDate } from '../CatalogDetail/helper' ;
2
+
3
+ /**
4
+ * Helper function to parse and format the value of a field representing a deletion timestamp in the provided data object.
5
+ * @param {Object } data - The data object containing the field representing the deletion timestamp.
6
+ * @returns {string } - The formatted date string if the deletion timestamp is valid; otherwise, "N/A".
7
+ */
8
+
9
+ export const DEFAULT_DATE = 'N/A' ; // a constant to represent the default date value
10
+ export const parseDeletionTimestamp = ( data : {
11
+ deleted_at : { Valid : boolean ; Time : string | number | Date } ;
12
+ } ) => {
13
+ if ( data && data . deleted_at && data . deleted_at . Valid === true ) {
14
+ const date = new Date ( data . deleted_at . Time ) ;
15
+ return formatDate ( date ) ;
16
+ } else {
17
+ return DEFAULT_DATE ;
18
+ }
19
+ } ;
Original file line number Diff line number Diff line change 1
1
import AssignmentModal from './AssignmentModal' ;
2
2
import DesignTable from './DesignTable' ;
3
3
import EnvironmentTable from './EnvironmentTable' ;
4
- export { AssignmentModal , DesignTable , EnvironmentTable } ;
4
+ import WorkspaceTeamsTable from './WorkspaceTeamsTable' ;
5
+ import useDesignAssignment from './hooks/useDesignAssignment' ;
6
+ import useEnvironmentAssignment from './hooks/useEnvironmentAssignment' ;
7
+ import useTeamAssignment from './hooks/useTeamAssignment' ;
8
+
9
+ export {
10
+ AssignmentModal ,
11
+ DesignTable ,
12
+ EnvironmentTable ,
13
+ WorkspaceTeamsTable ,
14
+ useDesignAssignment ,
15
+ useEnvironmentAssignment ,
16
+ useTeamAssignment
17
+ } ;
Original file line number Diff line number Diff line change @@ -63,3 +63,50 @@ export const CustomBodyRenderStyle = styled('div')({
63
63
display : 'block' ,
64
64
width : '100%'
65
65
} ) ;
66
+
67
+ export const TableTopIcon = styled ( 'span' ) ( ( ) => ( {
68
+ '& svg' : {
69
+ cursor : 'pointer' ,
70
+ width : '2rem' ,
71
+ height : '2rem'
72
+ }
73
+ } ) ) ;
74
+
75
+ export const DisabledTableTopIcon = styled ( 'span' ) ( ( ) => ( {
76
+ '& svg' : {
77
+ width : '2rem' ,
78
+ height : '2rem'
79
+ }
80
+ } ) ) ;
81
+
82
+ export const MesheryDeleteIcon = styled ( 'span' ) ( ( { theme } ) => ( {
83
+ '& svg' : {
84
+ color : '#3C494F' ,
85
+ '&:hover' : {
86
+ color : theme . palette . error . error
87
+ }
88
+ }
89
+ } ) ) ;
90
+
91
+ export const TableIconsDisabledContainer = styled ( 'span' ) ( ( ) => ( {
92
+ color : '#455a64' ,
93
+ opacity : '0.5' ,
94
+ '& svg' : {
95
+ cursor : 'not-allowed'
96
+ }
97
+ } ) ) ;
98
+
99
+ export const TableTopIconsWrapper = styled ( 'div' ) ( ( ) => ( {
100
+ display : 'flex' ,
101
+ justifyContent : 'space-between' ,
102
+ paddingRight : '26px'
103
+ } ) ) ;
104
+
105
+ export const TableIconsContainer = styled ( 'div' ) ( ( ) => ( {
106
+ color : '#455a64' ,
107
+ display : 'flex' ,
108
+ cursor : 'not-allowed' ,
109
+ '& svg' : {
110
+ cursor : 'pointer'
111
+ }
112
+ } ) ) ;
Original file line number Diff line number Diff line change @@ -32,10 +32,6 @@ export interface Environment {
32
32
updated_at : string ;
33
33
}
34
34
35
- export interface ColumnVisibility {
36
- [ key : string ] : boolean ;
37
- }
38
-
39
35
export interface Team {
40
36
id : string ;
41
37
name : string ;
You can’t perform that action at this time.
0 commit comments