Skip to content

Commit

Permalink
prettier, Eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChavdaSachin committed Oct 23, 2024
1 parent 9ec3cb9 commit 4eaf05f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/components/SelectionListWithModal/CustomListHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import useStyleUtils from '@hooks/useStyleUtils';
import useThemeStyles from '@hooks/useThemeStyles';

type CustomListHeaderProps = {
canSelectMultiple: Boolean | undefined;
leftHeaderText?: String | undefined;
rightHeaderText?: String | undefined;
canSelectMultiple: boolean | undefined;
leftHeaderText?: string | undefined;
rightHeaderText?: string | undefined;
};

function CustomListHeader({canSelectMultiple, leftHeaderText = '', rightHeaderText = ''}: CustomListHeaderProps) {
Expand All @@ -30,7 +30,7 @@ function CustomListHeader({canSelectMultiple, leftHeaderText = '', rightHeaderTe
</View>
</View>
);

if (canSelectMultiple) {
return header;
}
Expand Down
2 changes: 0 additions & 2 deletions src/pages/workspace/WorkspaceMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import useMobileSelectionMode from '@hooks/useMobileSelectionMode';
import useNetwork from '@hooks/useNetwork';
import usePrevious from '@hooks/usePrevious';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useStyleUtils from '@hooks/useStyleUtils';
import useThemeStyles from '@hooks/useThemeStyles';
import useWindowDimensions from '@hooks/useWindowDimensions';
import {turnOffMobileSelectionMode} from '@libs/actions/MobileSelectionMode';
Expand Down Expand Up @@ -69,7 +68,6 @@ type MemberOption = Omit<ListItem, 'accountID'> & {accountID: number};
function WorkspaceMembersPage({personalDetails, route, policy, currentUserPersonalDetails}: WorkspaceMembersPageProps) {
const policyMemberEmailsToAccountIDs = useMemo(() => PolicyUtils.getMemberAccountIDsForWorkspace(policy?.employeeList, true), [policy?.employeeList]);
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const [selectedEmployees, setSelectedEmployees] = useState<number[]>([]);
const [removeMembersConfirmModalVisible, setRemoveMembersConfirmModalVisible] = useState(false);
const [errors, setErrors] = useState({});
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function WorkspaceCategoriesPage({route}: WorkspaceCategoriesPageProps) {
/>
);
};

const navigateToCategorySettings = (category: PolicyOption) => {
if (backTo) {
Navigation.navigate(ROUTES.SETTINGS_CATEGORY_SETTINGS.getRoute(policyId, category.keyForList, backTo));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function PolicyDistanceRatesPage({
/>
);
};

const getBulkActionsButtonOptions = () => {
const options: Array<DropdownOption<WorkspaceDistanceRatesBulkActionType>> = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function WorkspaceReportFieldsPage({
/>
);
};

const getHeaderText = () => (
<View style={[styles.ph5, styles.pb5, styles.pt3, shouldUseNarrowLayout ? styles.workspaceSectionMobile : styles.workspaceSection]}>
{!hasSyncError && isConnectedToAccounting ? (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/tags/WorkspaceTagsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function WorkspaceTagsPage({route}: WorkspaceTagsPageProps) {
/>
);
};

const navigateToTagsSettings = () => {
Navigation.navigate(ROUTES.WORKSPACE_TAGS_SETTINGS.getRoute(policyID));
};
Expand Down

0 comments on commit 4eaf05f

Please sign in to comment.