Skip to content

Commit

Permalink
[REFACTORING]: changed the import of the components
Browse files Browse the repository at this point in the history
  • Loading branch information
Olga Yasnopolskaya committed Jan 15, 2025
1 parent 5812f58 commit f4f93dc
Show file tree
Hide file tree
Showing 52 changed files with 70 additions and 63 deletions.
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HttpError } from '@refinedev/core';
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Descriptions } from 'antd';
import * as React from 'react';
import { ReactNode } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Empty } from 'antd';
import * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion v6y-apps/front-bo/src/commons/components/VitalityLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LinkType } from '@v6y/core-logic';
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Col, Row } from 'antd';
import Link from 'next/link';
import * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { DownOutlined } from '@ant-design/icons';
import { useGetIdentity } from '@refinedev/core';
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Layout as AntdLayout, Avatar, Button, Dropdown, Space, Switch, theme } from 'antd';
import Cookie from 'js-cookie';
import * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { ThemedLayoutV2 } from '@refinedev/antd';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';
import { ReactNode } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { ApplicationType } from '@v6y/core-logic/src/types/ApplicationType';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';
import { useEffect, useState } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpError, useParsed } from '@refinedev/core';
import { AccountType } from '@v6y/core-logic';
import Matcher from '@v6y/core-logic/src/core/Matcher';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useParsed } from '@refinedev/core';
import { ApplicationType } from '@v6y/core-logic/src/types/ApplicationType';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { useEffect, useState } from 'react';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpError, useParsed } from '@refinedev/core';
import { ApplicationType } from '@v6y/core-logic';
import Matcher from '@v6y/core-logic/src/core/Matcher';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParsed } from '@refinedev/core';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HttpError, useParsed } from '@refinedev/core';
import { AuditHelpType } from '@v6y/core-logic';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParsed } from '@refinedev/core';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { AuthPage as AuthPageBase } from '@refinedev/antd';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import React from 'react';

export const VitalityAuthForgotPasswordView = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { AuthPage as AuthPageBase } from '@refinedev/antd';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import React from 'react';

export const VitalityAuthUpdatePasswordView = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { AuthPage as AuthPageBase } from '@refinedev/antd';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Checkbox, Form } from 'antd';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useParsed } from '@refinedev/core';
import { DependencyStatusHelpType } from '@v6y/core-logic/src';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParsed } from '@refinedev/core';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useParsed } from '@refinedev/core';
import { DeprecatedDependencyType } from '@v6y/core-logic/src';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParsed } from '@refinedev/core';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useParsed } from '@refinedev/core';
import { EvolutionHelpType } from '@v6y/core-logic';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useParsed } from '@refinedev/core';
import { EvolutionHelpType } from '@v6y/core-logic';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useParsed } from '@refinedev/core';
import { FaqType } from '@v6y/core-logic';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParsed } from '@refinedev/core';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useParsed } from '@refinedev/core';
import { NotificationType } from '@v6y/core-logic/src';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import VitalityDetailsView from '../../../commons/components/VitalityDetailsView';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParsed } from '@refinedev/core';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import * as React from 'react';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { List, RefreshButton, useTable } from '@refinedev/antd';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { ReactNode } from 'react';

import VitalityLoader from '../../commons/components/VitalityLoader';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Empty } from 'antd';
import * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion v6y-apps/front/src/commons/components/VitalityLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LinkType } from '@v6y/core-logic';
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Col, Row } from 'antd';
import Link from 'next/link';
import * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { List } from 'antd';
import * as React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Col, Form, Input, Row } from 'antd';
import * as React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ExportOutlined } from '@ant-design/icons';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Avatar, Button, Card, Col, Row, Space, Typography } from 'antd';
import * as React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Col, Form, Row, Select } from 'antd';
import * as React from 'react';
import { useEffect } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { Col, Divider, List, Row, Tag } from 'antd';
import Link from 'next/link';
import * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Col, Row } from 'antd';
import Image from 'next/image';
import Link from 'next/link';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Col, FloatButton, Layout, Row } from 'antd';
import * as React from 'react';
import { ReactNode } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { InfoCircleOutlined, PushpinOutlined } from '@ant-design/icons';
import { VitalityText, VitalityTitle } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Avatar, Button, Card, Divider, List, Space, Statistic } from 'antd';
import * as React from 'react';
import { useEffect, useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion v6y-apps/front/src/commons/config/VitalityCommonConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '@ant-design/icons';
import { ApplicationType } from '@v6y/core-logic';
import Matcher from '@v6y/core-logic/src/core/Matcher';
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import Link from 'next/link';
import * as React from 'react';
import { ReactNode } from 'react';
Expand Down
1 change: 0 additions & 1 deletion v6y-apps/front/src/commons/hooks/useAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { z } from 'zod';
import LoginAccount from '../../features/auth/api/loginAccount';
import { buildClientQuery } from '../../infrastructure/adapters/api/useQueryAdapter';
import useNavigationAdapter from '../../infrastructure/adapters/navigation/useNavigationAdapter';
import type { AuthCookie } from '../../infrastructure/storage/CookieHelper';
import {
SessionType,
getSession,
Expand Down
2 changes: 1 addition & 1 deletion v6y-apps/front/src/commons/hooks/useDataGrouper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityText } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import * as React from 'react';
import { useEffect, useState } from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { InfoCircleOutlined } from '@ant-design/icons';
import { AuditType } from '@v6y/core-logic';
import { VitalityText, VitalityTitle } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Button, Card, Col, List, Row, Statistic } from 'antd';
import Link from 'next/link';
import * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ExportOutlined } from '@ant-design/icons';
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Button, Col, Row } from 'antd';
import { useEffect, useState } from 'react';
import * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VitalityTitle } from '@v6y/shared-ui';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Col, Row } from 'antd';
import * as React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { VitalityText, VitalityTitle } from '@v6y/shared-ui';
import { VitalityText } from '@v6y/shared-ui/src/components/VitalityText';
import { VitalityTitle } from '@v6y/shared-ui/src/components/VitalityTitle';
import { Avatar, Card } from 'antd';
import Link from 'next/link';
import * as React from 'react';
Expand Down
2 changes: 2 additions & 0 deletions v6y-libs/shared-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"@vitejs/plugin-react-swc": "=3.7.2",
"@vitest/coverage-v8": "=2.1.8",
"@vitest/ui": "=2.1.8",
"@types/react": "=19.0.7",
"@types/react-dom": "=19.0.3",
"eslint": "=9.18.0",
"eslint-config-prettier": "=10.0.1",
"eslint-plugin-prettier": "=5.2.1",
Expand Down
6 changes: 2 additions & 4 deletions v6y-libs/shared-ui/src/components/VitalityText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ interface VitalityTextProps {
underline?: boolean;
}

const VitalityText: React.FC<VitalityTextProps> = ({ text, style, strong, underline }) => {
export function VitalityText({ text, style, strong, underline }: VitalityTextProps) {
return (
<Typography.Text style={style} strong={strong} underline={underline}>
{text}
</Typography.Text>
);
};

export default VitalityText;
}
Loading

0 comments on commit f4f93dc

Please sign in to comment.