TP-68136 | code critic workflow added
This commit is contained in:
12
App.tsx
12
App.tsx
@@ -94,18 +94,6 @@ function App() {
|
||||
}
|
||||
};
|
||||
|
||||
const testFunction = () => {
|
||||
const newArray: number[] = [];
|
||||
[1, 2, 3, 4, 5].map((item) => {
|
||||
newArray.push(item * 2);
|
||||
});
|
||||
let testString = 'test';
|
||||
if(testString === 'test') {
|
||||
//do something
|
||||
}
|
||||
return newArray;
|
||||
};
|
||||
|
||||
const getActiveRouteName = (state) => {
|
||||
if (!state || typeof state.index !== 'number') {
|
||||
return 'Unknown';
|
||||
|
||||
Reference in New Issue
Block a user