Skip to content

Commit

Permalink
style: update for new import sort order (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterckx committed Sep 5, 2024
1 parent 6273106 commit c73b950
Show file tree
Hide file tree
Showing 38 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/apis/azul/common/filterTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
PaginationResponse,
} from "../../../providers/exploreState";
import {
AZUL_FILTER_OPERATOR,
AzulPaginationResponse,
AzulSearchIndex,
AzulTermFacets,
AZUL_FILTER_OPERATOR,
LABEL,
} from "./entities";
import { getFilterParameterValue } from "./utils";
Expand Down
2 changes: 1 addition & 1 deletion src/common/analytics/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getConfig } from "../../config/config";
import { DataLayer, EventParams, EVENT_NAME } from "./entities";
import { DataLayer, EVENT_NAME, EventParams } from "./entities";

/**
* Returns the GTM data layer for the environment, if enabled.
Expand Down
2 changes: 1 addition & 1 deletion src/components/Detail/components/Table/table.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
TableCellProps as MTableCellProps,
TableContainer,
TableContainerProps as MTableContainerProps,
TableProps as MTableProps,
TableContainer,
} from "@mui/material";
import {
ColumnDef,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Error/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { AlertIcon } from "../common/CustomIcon/components/AlertIcon/alertIcon";
import { Grid } from "../common/Grid/grid";
import { RoundedPaper } from "../common/Paper/paper.styles";
import {
SectionActions,
SectionContent as Content,
SectionActions,
} from "../common/Section/section.styles";
import { PRIORITY, StatusIcon } from "../common/StatusIcon/statusIcon";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { MANIFEST_DOWNLOAD_FORMAT } from "../../../../apis/azul/common/entities"
import { Filters } from "../../../../common/entities";
import { useExploreState } from "../../../../hooks/useExploreState";
import {
FileManifestType,
FILE_MANIFEST_TYPE,
FileManifestType,
} from "../../../../hooks/useFileManifest/common/entities";
import { useFileManifest } from "../../../../hooks/useFileManifest/useFileManifest";
import { useRequestFileManifest } from "../../../../hooks/useFileManifest/useRequestFileManifest";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import { FileSummaryFacet } from "../../../../common/entities";
import { OnFilterFn, OnUpdateFilterFacet } from "../../common/entities";
import { ERROR, OnClearError } from "../../exportForm";
import {
GridPaper,
TableFormControl as FormControl,
GridPaper,
} from "../../exportForm.styles";

export interface ExportFileSummaryFormProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Typography } from "@mui/material";
import React from "react";
import {
OnboardingStatus,
ONBOARDING_STEP,
OnboardingStatus,
useAuthenticationForm,
} from "../../../../../../hooks/useAuthentication/useAuthenticationForm";
import { TEXT_BODY_400_2_LINES } from "../../../../../../theme/common/typography";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import React, {
useState,
} from "react";
import {
ListChildComponentProps,
VariableSizeList as List,
ListChildComponentProps,
VariableSizeListProps as ListProps,
} from "react-window";
import { SelectCategoryView } from "../../../../../../common/entities";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useCallback, useEffect, useRef, useState } from "react";
import {
ListChildComponentProps,
VariableSizeList as List,
ListChildComponentProps,
VariableSizeListProps as ListProps,
} from "react-window";
import { CategoryKey } from "../../../../common/entities";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
PopperProps,
Tooltip as MTooltip,
TooltipProps as MTooltipProps,
PopperProps,
} from "@mui/material";
import { detectOverflow } from "@popperjs/core";
import { State } from "@popperjs/core/lib/types";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/components/BackPage/backPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
BackPageContentMainColumn,
BackPageContentSideColumn,
BackPageHero,
BackPageTabs,
BackPageView as BackPageLayout,
BackPageTabs,
DetailPageOverviewContent,
DetailPageOverviewContentMainColumn,
DetailPageOverviewContentSideColumn,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/components/Header/common/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Breakpoint } from "@mui/material";
import { isClientSideNavigation } from "../../../../Links/common/utils";
import { NavLinkItem } from "../components/Content/components/Navigation/navigation";
import { Navigation, SelectedMatch, SELECTED_MATCH } from "./entities";
import { Navigation, SELECTED_MATCH, SelectedMatch } from "./entities";

/**
* Adds to the set of selected patterns, for the navigation link, at the current breakpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { MenuItem } from "@mui/material";
import React, { MouseEvent, useState } from "react";
import { UserProfile } from "../../../../../../../../../../../../hooks/useAuthentication/useFetchGoogleProfile";
import {
AuthenticationMenu as Menu,
Avatar,
AuthenticationMenu as Menu,
UserIcon,
UserNames,
UserSummary,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import MenuRoundedIcon from "@mui/icons-material/MenuRounded";
import { Dialog as MDialog, Fade, IconButton } from "@mui/material";
import { Fade, IconButton, Dialog as MDialog } from "@mui/material";
import React, { CSSProperties, forwardRef, Fragment, useEffect } from "react";
import { getMenuNavigationLinks } from "../../../../../../common/utils";
import { HeaderProps } from "../../../../../../header";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
import {
ClickAwayListener as MClickAwayListener,
Grow,
ClickAwayListener as MClickAwayListener,
MenuList as MMenuList,
Paper as MPaper,
PopperProps as MPopperProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
StaticImageProps,
} from "../../../../../common/StaticImage/staticImage";
import {
HeroLogo as Logo,
HeroText,
NavBarHero as Hero,
HeroText,
HeroLogo as Logo,
} from "./navBarHero.styles";

export interface NavBarHeroProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/components/Outline/outline.styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from "@emotion/react";
import styled from "@emotion/styled";
import { Tab as MTab, TabProps, Tabs as MTabs } from "@mui/material";
import { Tab as MTab, Tabs as MTabs, TabProps } from "@mui/material";
import { smokeMain } from "../../../../styles/common/mixins/colors";
import {
textBody500,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Loading/loading.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { css } from "@emotion/react";
import styled from "@emotion/styled";
import { TABLET } from "../../theme/common/breakpoints";
import { Paper, PAPER_PANEL_STYLE } from "../common/Paper/paper";
import { LoadingPanelStyle, LOADING_PANEL_STYLE } from "./loading";
import { LOADING_PANEL_STYLE, LoadingPanelStyle } from "./loading";

interface Props {
panelStyle: LoadingPanelStyle;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Loading/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Fade, SvgIconProps, Typography } from "@mui/material";
import React from "react";
import { LoadingIcon } from "../common/CustomIcon/components/LoadingIcon/loadingIcon";
import { PaperPanelStyle, PAPER_PANEL_STYLE } from "../common/Paper/paper";
import { PAPER_PANEL_STYLE, PaperPanelStyle } from "../common/Paper/paper";
import { LoadingPaper, LoadingPositioner } from "./loading.styles";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { ANCHOR_TARGET } from "../../../Links/common/entities";
import { Link } from "../../../Links/components/Link/link";
import { SupplementaryLink } from "../../common/entities";
import {
Marker,
SupplementaryLink as EllipsisLink,
Marker,
SupplementaryList,
} from "./supplementaryLinks.styles";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FormOption, FormState, FORM_CONTROL_NAME } from "./entities";
import { FORM_CONTROL_NAME, FormOption, FormState } from "./entities";

// Validation constraints
export const CONSTRAINTS = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RequestValue, REQUEST_FIELD_ID, UploadResponse } from "./entities";
import { REQUEST_FIELD_ID, RequestValue, UploadResponse } from "./entities";

/**
* Create support request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import {
OPTIONS,
} from "./common/constants";
import {
FormState,
FORM_CONTROL_LABEL,
FORM_CONTROL_NAME,
FormState,
RequestValue,
ValidateResponse,
} from "./common/entities";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
} from "../../../../../../theme/common/typography";
import { EmailReadIcon } from "../../../../../common/CustomIcon/components/EmailReadIcon/emailReadIcon";
import {
IconBadge,
ICON_BADGE_COLOR,
IconBadge,
} from "../../../../../common/IconBadge/iconBadge";
import {
Section,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
GridTrackMinMax,
GridTrackSize,
} from "../../../config/entities";
import { ExploreMode, EXPLORE_MODE } from "../../../hooks/useExploreMode";
import { EXPLORE_MODE, ExploreMode } from "../../../hooks/useExploreMode";
import { CheckboxMenuListItem } from "../components/CheckboxMenu/checkboxMenu";

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
PopperProps,
Tooltip as MTooltip,
TooltipProps as MTooltipProps,
PopperProps,
} from "@mui/material";
import { detectOverflow } from "@popperjs/core";
import { State } from "@popperjs/core/lib/types";
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/Accordion/accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
Accordion as MAccordion,
AccordionDetails,
AccordionProps as MAccordionProps,
AccordionSummary,
Accordion as MAccordion,
AccordionProps as MAccordionProps,
Typography,
} from "@mui/material";
import React, { ReactNode, useState } from "react";
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Alert/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
AlertTitle,
Alert as MAlert,
AlertProps as MAlertProps,
AlertTitle,
} from "@mui/material";
import React, { ReactNode } from "react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AlertProps as MAlertProps, ButtonProps } from "@mui/material";
import { ButtonProps, AlertProps as MAlertProps } from "@mui/material";
import React, { forwardRef, Fragment, ReactNode } from "react";
import { FLAG } from "../../../../../hooks/useFeatureFlag/common/entities";
import { setLocalStorage } from "../../../../../hooks/useLocalStorage/common/utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
Fade,
Alert as MAlert,
AlertProps as MAlertProps,
Fade,
} from "@mui/material";
import React, { ElementType, ReactNode, useEffect, useState } from "react";

Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Breadcrumbs/breadcrumbs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ChevronRightRoundedIcon from "@mui/icons-material/ChevronRightRounded";
import {
Breadcrumbs as MBreadcrumbs,
Link as BreadcrumbLink,
Breadcrumbs as MBreadcrumbs,
Typography,
} from "@mui/material";
import Link from "next/link";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
import { DialogTitle as MDialogTitle, IconButton } from "@mui/material";
import { IconButton, DialogTitle as MDialogTitle } from "@mui/material";
import React, { ReactNode } from "react";

export interface DialogTitleProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Form/components/Input/input.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
OutlinedInput,
OutlinedInputProps as MOutlinedInputProps,
OutlinedInput,
Typography,
} from "@mui/material";
import React from "react";
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/IconBadge/iconBadge.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
warningLightest,
warningMain,
} from "../../../styles/common/mixins/colors";
import { IconBadgeColor, ICON_BADGE_COLOR } from "./iconBadge";
import { ICON_BADGE_COLOR, IconBadgeColor } from "./iconBadge";

interface Props {
color: IconBadgeColor;
Expand Down
2 changes: 1 addition & 1 deletion src/entity/api/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// TODO move to Azul APIs section
import {
APIEndpoints,
AZUL_PARAM,
AzulCatalogResponse,
AzulEntitiesResponse,
AzulListParams,
AzulSummaryResponse,
AZUL_PARAM,
} from "../../apis/azul/common/entities";
import { transformFilters } from "../../apis/azul/common/filterTransformer";
import { getConfig } from "../../config/config";
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCurrentBreakpoint.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Breakpoint } from "@mui/material";
import { useMemo } from "react";
import {
BreakpointKey,
BREAKPOINT_FN_NAME,
BreakpointKey,
useBreakpointHelper,
} from "./useBreakpointHelper";

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useEntityList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useAsync } from "./useAsync";
import { useAuthentication } from "./useAuthentication/useAuthentication";
import { useConfig } from "./useConfig";
import { useEntityService } from "./useEntityService";
import { ExploreMode, EXPLORE_MODE, useExploreMode } from "./useExploreMode";
import { EXPLORE_MODE, ExploreMode, useExploreMode } from "./useExploreMode";
import { useExploreState } from "./useExploreState";
import { useURLFilterParams } from "./useURLFilterParams";

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useEntityService.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EntityConfig, EntityMapper } from "../config/entities";
import { getEntityConfig } from "../config/utils";
import { createEntityService } from "../entity/service/factory";
import { EntityService, ENTITY_SERVICE_TYPE } from "../entity/service/model";
import { ENTITY_SERVICE_TYPE, EntityService } from "../entity/service/model";
import { useCatalog } from "./useCatalog";
import { useConfig } from "./useConfig";
import { EXPLORE_MODE } from "./useExploreMode";
Expand Down

0 comments on commit c73b950

Please sign in to comment.