diff --git a/src/driven/adapters/get-users-adapter/getUsersAdapter.ts b/src/driven/adapters/get-users-adapter/getUsersAdapter.ts index d0b47a5..d22f23e 100644 --- a/src/driven/adapters/get-users-adapter/getUsersAdapter.ts +++ b/src/driven/adapters/get-users-adapter/getUsersAdapter.ts @@ -16,8 +16,7 @@ const getUsersAdapter = (): IGetUsersPort & getUsersAdapterReturnType => { // make the httpHandler const httpProvider = new HTTPPovider(); - const httpHandler = async () => - httpProvider.request(options); + const httpHandler = async () => httpProvider.request(options); // return the method return { diff --git a/src/driven/utils/components/page-title/pageTitle.tsx b/src/driven/utils/components/page-title/pageTitle.tsx index c1bc65f..519ef93 100644 --- a/src/driven/utils/components/page-title/pageTitle.tsx +++ b/src/driven/utils/components/page-title/pageTitle.tsx @@ -7,11 +7,5 @@ interface IPageTitleProps { export default function PageTitle(props: IPageTitleProps) { const { title, className } = props; - return ( -
- {title} -
- ); + return
{title}
; } diff --git a/src/driving/application/core/common/table-row/infra/TableRowInfra.tsx b/src/driving/application/core/common/table-row/infra/TableRowInfra.tsx index c4ba581..4ecd83b 100644 --- a/src/driving/application/core/common/table-row/infra/TableRowInfra.tsx +++ b/src/driving/application/core/common/table-row/infra/TableRowInfra.tsx @@ -9,11 +9,5 @@ export default function TableRow(props: ITableRowInfra) { const { isRowSelected } = useTableRowVM({ selectedRowId, rowId }); - return ( - - ); + return ; } diff --git a/src/driving/application/core/common/table-row/view/TableRow.tsx b/src/driving/application/core/common/table-row/view/TableRow.tsx index 6200cc6..714d674 100644 --- a/src/driving/application/core/common/table-row/view/TableRow.tsx +++ b/src/driving/application/core/common/table-row/view/TableRow.tsx @@ -6,14 +6,7 @@ export default function TableRowView(props: ITableRowProps) { const { isSelected, setSelectedRowId, rowData } = props; const { rowId, rowItemsTitle } = rowData; const columns = rowItemsTitle.map((rowItemTitle, index) => { - return ( - - ); + return ; }); return setSelectedRowId(rowId)}>{columns}; diff --git a/src/driving/application/core/common/table-row/view/table-row-item/view/RowItem.tsx b/src/driving/application/core/common/table-row/view/table-row-item/view/RowItem.tsx index ca0e747..e15e71b 100644 --- a/src/driving/application/core/common/table-row/view/table-row-item/view/RowItem.tsx +++ b/src/driving/application/core/common/table-row/view/table-row-item/view/RowItem.tsx @@ -17,11 +17,7 @@ export default function RowItem(props: IRowItemProp) { isSelected ? 'opacity-100' : 'opacity-0' }`} > - - ✓ - + )} {title} diff --git a/src/driving/application/core/places-list/infra/PlacesList.tsx b/src/driving/application/core/places-list/infra/PlacesList.tsx index cf56c24..0b41617 100644 --- a/src/driving/application/core/places-list/infra/PlacesList.tsx +++ b/src/driving/application/core/places-list/infra/PlacesList.tsx @@ -18,18 +18,9 @@ export default function PlacessList() { const { getingPlacesLogic, url } = prepareTheLogicForModel(); const placesModel = async () => await placesListModel(getingPlacesLogic); - const useGetPlacesList = prepareStateManagementForVM( - url, - placesModel - ); + const useGetPlacesList = prepareStateManagementForVM(url, placesModel); const { selectedRowId, setSelectedRowId, placesData } = usePlacesListVM({ useGetPlacesList, }); - return ( - - ); + return ; } diff --git a/src/driving/application/core/users-list/infra/UsersList.tsx b/src/driving/application/core/users-list/infra/UsersList.tsx index 8717f67..6a6894a 100644 --- a/src/driving/application/core/users-list/infra/UsersList.tsx +++ b/src/driving/application/core/users-list/infra/UsersList.tsx @@ -17,18 +17,9 @@ const prepareTheLogicForModel = () => { export default function UsersList() { const { getingusersLogic, url } = prepareTheLogicForModel(); const usersModel = async () => await usersListModel(getingusersLogic); - const useGetusersList = prepareStateManagementForVM( - url, - usersModel - ); + const useGetusersList = prepareStateManagementForVM(url, usersModel); const { selectedRowId, setSelectedRowId, usersData } = useUsersListVM({ useGetusersList, }); - return ( - - ); + return ; } diff --git a/src/driving/application/core/users-list/model/protocols.ts b/src/driving/application/core/users-list/model/protocols.ts index 583ed65..45c4c6d 100644 --- a/src/driving/application/core/users-list/model/protocols.ts +++ b/src/driving/application/core/users-list/model/protocols.ts @@ -1,6 +1,4 @@ import UsersModel from '~/business-logic/core/users/common/data/model/usersModel'; import { getUsersReturnPort } from '~/business-logic/core/users/get-users/ports'; -export type getUsersModel = ( - getUsers: getUsersReturnPort -) => Promise; +export type getUsersModel = (getUsers: getUsersReturnPort) => Promise; diff --git a/src/driving/application/support/sidebar/view/Sidebar.tsx b/src/driving/application/support/sidebar/view/Sidebar.tsx index 811867f..726c54e 100644 --- a/src/driving/application/support/sidebar/view/Sidebar.tsx +++ b/src/driving/application/support/sidebar/view/Sidebar.tsx @@ -13,9 +13,7 @@ export default function Sidebar() { key={key} to={routesData[key].path} className={`flex text-white mb-6 text-sm w-full py-2 pl-2 rounded-lg ${ - isCurrentPage.pathname === routesData[key].path - ? 'bg-primary-300' - : '' + isCurrentPage.pathname === routesData[key].path ? 'bg-primary-300' : '' }`} > page icon diff --git a/src/driving/main/pages/CreateUser.tsx b/src/driving/main/pages/CreateUser.tsx index 299e9a3..a984828 100644 --- a/src/driving/main/pages/CreateUser.tsx +++ b/src/driving/main/pages/CreateUser.tsx @@ -6,10 +6,7 @@ import CreateUser from '~/driving/application/core/create-user'; export default function CreateUserPage() { return ( <> - + ); diff --git a/src/driving/main/pages/index.tsx b/src/driving/main/pages/index.tsx index 5bcd6a4..c604028 100644 --- a/src/driving/main/pages/index.tsx +++ b/src/driving/main/pages/index.tsx @@ -11,11 +11,7 @@ export default function index() {
- null} - /> + null} />