Commit 574f87a
committed
refactor: simplify expiry extraction using extractExpiryToReadableDate utility
- Use extractExpiryToReadableDate from time-utils instead of manual extraction
- Remove UTC zone specification from convertTimestampToReadableDate
- Reduce getExpirationDate function from 26 to 9 lines
- Import GatorPermissionRule type for proper typing1 parent 03f5634 commit 574f87a
File tree
2 files changed
+10
-22
lines changed- ui/components/multichain/pages/gator-permissions/components
2 files changed
+10
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
Lines changed: 9 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
187 | 176 | | |
188 | 177 | | |
189 | | - | |
190 | 178 | | |
191 | 179 | | |
192 | 180 | | |
| |||
0 commit comments