Skip to content

Commit cd055af

Browse files
authored
Merge pull request #100 from KasperskyLab/feature/update-quick-start-example
feat: update quick-start example
2 parents 5a70ad0 + 6060213 commit cd055af

File tree

6 files changed

+707
-628
lines changed

6 files changed

+707
-628
lines changed

examples/quick-start/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
```bash
66
npm create vite my-project-name -- --template react-ts
77
cd my-project-name
8-
npm install react@17 react-dom@17 @kaspersky/icons @kaspersky/components
9-
npm install -D @types/react@17 @types/react-dom@17 less antd@4.18
8+
npm install react@17 react-dom@17 @kaspersky/hexa-ui-icons @kaspersky/hexa-ui --legacy-peer-deps
9+
npm install -D @types/react@17 @types/react-dom@17 less antd@4.18 --legacy-peer-deps
1010
```
1111

1212
2. Add this to `vite.config.ts` for correct `less` work:
@@ -53,12 +53,12 @@
5353
```typescript
5454
import { useState } from 'react'
5555
56-
import { ConfigProvider } from '@kaspersky/components/design-system/context/provider'
57-
import { GlobalStyle } from '@kaspersky/components/design-system/global-style'
58-
import { ThemeKey } from '@kaspersky/components/design-system'
59-
import { LangVariants } from '@kaspersky/components/helpers/localization/types'
56+
import { ConfigProvider } from '@kaspersky/hexa-ui/design-system/context/provider'
57+
import { GlobalStyle } from '@kaspersky/hexa-ui/design-system/global-style'
58+
import { ThemeKey } from '@kaspersky/hexa-ui/design-system'
59+
import { LangVariants } from '@kaspersky/hexa-ui/helpers/localization/types'
6060
61-
import { Notification, H1 } from '@kaspersky/components'
61+
import { Notification, H1 } from '@kaspersky/hexa-ui'
6262
6363
function App() {
6464
const [themeKey] = useState<ThemeKey>(ThemeKey.Light)
@@ -67,7 +67,7 @@
6767
<ConfigProvider theme={themeKey} locale={LangVariants.EnUs}>
6868
<GlobalStyle />
6969
<Notification/>
70-
<H1>Hi there! I am using @kaspersky/components!</H1>
70+
<H1>Hi there! I am using @kaspersky/hexa-ui!</H1>
7171
</ConfigProvider>
7272
)
7373
}

0 commit comments

Comments
 (0)