Skip to content

Commit

Permalink
refactor: Remove unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan committed Dec 23, 2024
1 parent a370cc8 commit d9465f1
Showing 1 changed file with 12 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ResourceBody extends StatelessWidget {
return BlocProvider(
create: (context) => ResourceCubit(authUser),
child: BlocBuilder<ResourceCubit, ResourceState>(
// buildWhen: (previous, current) =>
// previous.currentNav != current.currentNav ||
// previous.resourceTypes != current.resourceTypes ||
// previous.resources != current.resources,
builder: (context, state) {
switch (state.currentNav) {
case ResourceNav.showAllResources:
Expand All @@ -43,18 +39,18 @@ class ResourceBody extends StatelessWidget {
),
const SizedBox(height: 16),
// TODO: Implement Search and Filter
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(child: ResourceSearchBar()),
Expanded(
child: ResourceTypeFilter(
resourceTypes: state.resourceTypes,
// TODO: Implement onSelected filtering
// onSelected: onSelected,
)),
],
),
// Row(
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// Expanded(child: ResourceSearchBar()),
// Expanded(
// child: ResourceTypeFilter(
// resourceTypes: state.resourceTypes,
// // TODO: Implement onSelected filtering
// // onSelected: onSelected,
// )),
// ],
// ),
Expanded(
child: ResourceTabBar(
initialTabIndex: state.initialTabIndex)),
Expand Down Expand Up @@ -149,8 +145,6 @@ class AllResourcesTab extends StatelessWidget {
child: Text("No resources found"),
);
}
// TODO: Figure out how this can be updated as user add and delete resources
// need to somehow fetch the resources and update the state when we tab around
return ListView.builder(
itemCount: state.resources.length,
itemBuilder: (context, index) {
Expand Down

0 comments on commit d9465f1

Please sign in to comment.