Skip to content

Commit

Permalink
refactor(ui): INFRA-509 fixed code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Alllex202 committed Sep 13, 2024
1 parent 77864bb commit f23e8f3
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/components/Alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Alert as DefaultAlert, AlertProps as DefaultAlertProps } from 'antd'
import React from 'react'

type CondoAlertProps = {
type: 'success' | 'info' | 'warning' | 'error';
type: 'success' | 'info' | 'warning' | 'error'
}

const ALERT_CLASS_PREFIX = 'condo-alert'
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { sendAnalyticsClickEvent, extractChildrenContent } from '../_utils/analy
export const BUTTON_CLASS_PREFIX = 'condo-btn'

type CondoButtonProps = {
type: 'primary' | 'secondary',
type: 'primary' | 'secondary'
children?: string
stateless?: boolean
focus?: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Dropdown/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useItems } from '../hooks/useItems'


export interface IDropdownItem {
disabled?: boolean,
disabled?: boolean
label: string
onClick?: MenuItemType['onClick']
key: React.Key
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Markdown/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const REMARK_PLUGINS = [
]

export type MarkdownProps = {
children: string,
children: string
}

const MARKDOWN_CLASS_PREFIX = 'condo-markdown'
Expand Down
8 changes: 4 additions & 4 deletions packages/ui/src/components/Modal/useModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ const ElementsHolder = React.memo(
ElementsHolder.displayName = 'ModalContainer'

interface HookModalProps {
afterClose: () => void;
config: ModalConfig;
afterClose: () => void
config: ModalConfig
}

interface HookModalRef {
destroy: () => void;
update: (config: ModalConfig) => void;
destroy: () => void
update: (config: ModalConfig) => void
}

const HookModal = React.forwardRef<HookModalRef, HookModalProps>((
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Steps/step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Check } from '@open-condo/icons'
import { Space, Typography, Tooltip } from '@open-condo/ui/src'

export type StepItem = {
title: string,
title: string
breakPoint?: boolean
}

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Steps/steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type StepsProps = {
current?: number
items: Array<StepItem>
onChange?: (currentStep: number) => void
id?: string,
id?: string
className?: string
noReturnMessage?: string
}
Expand Down
8 changes: 4 additions & 4 deletions packages/ui/src/components/Typography/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export type { TypographyTextProps } from './text'
export type { TypographyLinkProps } from './link'
export type { TypographyParagraphProps } from './paragraph'
export type TypographyType = {
Text: typeof Text,
Title: typeof Title,
Link: typeof Link,
Paragraph: typeof Paragraph,
Text: typeof Text
Title: typeof Title
Link: typeof Link
Paragraph: typeof Paragraph
}

const Typography: TypographyType = {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/_utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ type ComponentNames = {
type AnyComponentName = ComponentNames[AnalyticsEvent]

type CommonAnalyticsProps<Event extends AnalyticsEvent, Component extends AnyComponentName> = {
event: Event,
location: string,
event: Event
location: string
component: Component
} & CommonComponentProps

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/_utils/responsiveObserve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const responsiveObserve = {
[prop: string]: {
mql: MediaQueryList
listener: MediaQueryListListener
};
}
},
dispatch (pointMap: ScreenMap): boolean {
screens = pointMap
Expand Down
36 changes: 18 additions & 18 deletions packages/ui/src/stories/Card/CardButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ import type { Meta, StoryFn, StoryObj } from '@storybook/react'
const CardButton = Component.CardButton

type StoryProps = ComponentProps<typeof CardButton> & {
accent: boolean;
disabled: boolean;
headerTag: boolean;
header: boolean;
headerProgressIndicator: boolean;
headerEmoji: boolean;
headerTitle: boolean;
headerMainLink: boolean;
headerSecondLink: boolean;
headerImage: boolean;
body: boolean;
bodyTitle: boolean;
bodyDescription: boolean;
bodyImage: boolean;
bodyCaption: boolean;
bodyMainLink: boolean;
bodySecondLink: boolean;
bodyButton: boolean;
accent: boolean
disabled: boolean
headerTag: boolean
header: boolean
headerProgressIndicator: boolean
headerEmoji: boolean
headerTitle: boolean
headerMainLink: boolean
headerSecondLink: boolean
headerImage: boolean
body: boolean
bodyTitle: boolean
bodyDescription: boolean
bodyImage: boolean
bodyCaption: boolean
bodyMainLink: boolean
bodySecondLink: boolean
bodyButton: boolean
}

export default {
Expand Down
28 changes: 14 additions & 14 deletions packages/ui/src/stories/Card/CardCheckbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ import type { Meta, StoryFn, StoryObj } from '@storybook/react'
const CardCheckbox = Component.CardCheckbox

type StoryProps = ComponentProps<typeof CardCheckbox> & {
disabled: boolean;
header: boolean;
headerProgressIndicator: boolean;
headerEmoji: boolean;
headerTitle: boolean;
headerImage: boolean;
body: boolean;
bodyTitle: boolean;
bodyDescription: boolean;
bodyImage: boolean;
bodyCaption: boolean;
bodyMainLink: boolean;
bodySecondLink: boolean;
bodyButton: boolean;
disabled: boolean
header: boolean
headerProgressIndicator: boolean
headerEmoji: boolean
headerTitle: boolean
headerImage: boolean
body: boolean
bodyTitle: boolean
bodyDescription: boolean
bodyImage: boolean
bodyCaption: boolean
bodyMainLink: boolean
bodySecondLink: boolean
bodyButton: boolean
}

export default {
Expand Down
8 changes: 4 additions & 4 deletions packages/ui/src/stories/ProgressIndicator.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { ProgressIndicator, ProgressIndicatorProps, ProgressIndicatorStep } from
import type { StoryFn, Meta, StoryObj } from '@storybook/react'

type MetaProps = {
firstStep: ProgressIndicatorStep,
secondStep: ProgressIndicatorStep | undefined,
thirdStep: ProgressIndicatorStep | undefined,
fourthStep: ProgressIndicatorStep | undefined,
firstStep: ProgressIndicatorStep
secondStep: ProgressIndicatorStep | undefined
thirdStep: ProgressIndicatorStep | undefined
fourthStep: ProgressIndicatorStep | undefined
}

const stepMeta = {
Expand Down

0 comments on commit f23e8f3

Please sign in to comment.