Skip to content

Commit 7ba9626

Browse files
committed
update
1 parent 77430aa commit 7ba9626

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

src/components/Help/Help.tsx

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
import "./Help.sass";
22

33
import { type FC } from "react";
4-
import { useNavigate } from "react-router-dom";
5-
import { getRoutePath } from "utils";
64

75
import { Card, Text, Title } from "uikit";
86

9-
import { RouteID } from "models";
10-
117
interface HelpProps {
12-
to: RouteID;
8+
to: string;
139
title: string;
1410
text: string;
1511
}
1612

1713
const Help: FC<HelpProps> = (props) => {
18-
const navigate = useNavigate();
19-
2014
const handleOnClick = () => {
21-
navigate(getRoutePath(props.to));
15+
window.open(props.to, "_blank");
2216
};
2317

2418
return (

src/core/Home/Home.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ const Home: FC = () => {
5353
<Page className="Home" containerClassName="Home_grid">
5454
<div className="Home__aside">
5555
<Help
56-
to={RouteID.HowToUse}
56+
to={"https://github.com/dmaximyuk/zlottie"}
5757
title={t("home.aside.whyIs.title")}
5858
text={t("home.aside.whyIs.text")}
5959
/>
6060
</div>
6161
<div className="Home__aside">
6262
<Help
63-
to={RouteID.HowToUse}
63+
to={
64+
"https://github.com/dmaximyuk/zlottie/tree/master/src/uikit/Service/LottieWeb"
65+
}
6466
title={t("home.aside.howUse.title")}
6567
text={t("home.aside.howUse.text")}
6668
/>

src/uikit/Service/LottieWeb/README.md

-10
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,6 @@ The `LottieWeb` component uses the `lottie-web` library to render animations. Th
9292
- Customizable playback behavior with `loop` and `autoplay` options.
9393
- Adjustable container size with the `size` prop.
9494

95-
## Styling
96-
97-
To style the animation container, you can use the `.LottieWeb` CSS class. The default inline styles control the width and height based on the `size` prop.
98-
99-
```sass
100-
.LottieWeb
101-
display: inline-block
102-
overflow: hidden
103-
```
104-
10595
## Troubleshooting
10696

10797
1. **Animation not displaying**:

0 commit comments

Comments
 (0)