Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Feb 19, 2024
1 parent 478aafc commit 6231c66
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -74,7 +74,7 @@ export const ApplicationRolesList = (props: ApplicationRolesListProps): ReactEle
*
* @returns placeholder component.
*/
const showPlaceholders = (): ReactElement => {
const showPlaceholders = (): ReactElement => {
// When the search returns empty.
if (searchQuery && roleList?.length === 0) {
return (
Expand Down Expand Up @@ -128,7 +128,7 @@ export const ApplicationRolesList = (props: ApplicationRolesListProps): ReactEle

/**
* Handle expand accordion title.
*
*
* @param appRole - Application role.
*/
const handleAccordionTitleClick = (
Expand All @@ -150,9 +150,9 @@ export const ApplicationRolesList = (props: ApplicationRolesListProps): ReactEle

/**
* Renders the application roles list.
*
*
* @param roles - Role list.
*
*
* @returns Role list component.
*/
const resolveApplicationRolesList = (filteredApplicationRoles: ApplicationRoleInterface[]): ReactElement => {
Expand All @@ -174,8 +174,8 @@ export const ApplicationRolesList = (props: ApplicationRolesListProps): ReactEle
active={ expandedAssignedApplications?.includes(application.app) }
accordionIndex={ application.app }
className="nested-list-accordion-title mb-2 mt-1"
onClick={
() =>
onClick={
() =>
handleAccordionTitleClick(
application,
expandedAssignedApplications,
Expand Down Expand Up @@ -224,7 +224,7 @@ export const ApplicationRolesList = (props: ApplicationRolesListProps): ReactEle
<Accordion
data-componentid={ `${ componentId }-application-roles` }
>
{
{
resolveApplicationRolesList(
roleList
)
Expand Down

0 comments on commit 6231c66

Please sign in to comment.