TP-68136 | code critic workflow added

This commit is contained in:
Aman Chaturvedi
2024-08-21 20:53:24 +05:30
parent f5f074178b
commit f6cf9985ac

12
App.tsx
View File

@@ -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';