Skip to content

Commit

Permalink
Remove unecessary console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaChx committed Dec 12, 2023
1 parent dd2e6b6 commit 8dfebaa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/app/datasources/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ function DatasourcesPage() {
})
}, [pagination.currentPage, pagination.pageSize])

console.log('data: ', data)
console.log('pagination: ', pagination)

const handlePageChange = (newPage: number) => {
setPagination((prevState) => ({ ...prevState, currentPage: newPage }))
}
Expand Down Expand Up @@ -73,7 +70,6 @@ function DatasourcesPage() {
</div>
<div className="mb-8">
<div className="mx-auto max-w-6xl overflow-auto rounded-lg border-0 bg-white shadow-md">
{' '}
<div className="w-full">
{data ? (
<Table
Expand Down
2 changes: 0 additions & 2 deletions src/components/Datasources/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const DatasourceTable: React.FC<TableProps> = ({ initialData, pagination, onPage
const router = useRouter()
const [data, setData] = useState(initialData)

console.log('TableData: ', data)

useEffect(() => {
setData(initialData)
}, [initialData])
Expand Down
2 changes: 0 additions & 2 deletions src/components/Datasources/TablePagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ const Pagination: React.FC<PaginationProps> = ({

return (
<div className="flex items-center justify-between rounded-lg bg-transparent p-4">
{' '}
{/* Removed shadow-lg and added bg-transparent */}
<div className="flex-1 text-sm font-semibold text-gray-700">
Page {currentPage} of {totalPages}
</div>
Expand Down

0 comments on commit 8dfebaa

Please sign in to comment.