Skip to content

Commit f016acd

Browse files
committed
cleanup DownloadOASButton
1 parent b968783 commit f016acd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

components/DownloadOasButton/DownloadOasButton.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: "DownloadOasButton"
3-
description: "Button for downloading the OpenAPI file."
2+
title: "DownloadOASButton"
3+
description: "A button for downloading an OpenAPI file."
44
author: "@olehshh"
55
version: "1.0.0"
66
---
77

8-
export const DownloadOasButton = ({ url }) => {
8+
export const DownloadOASButton = ({ url }) => {
99
const getFileNameFromUrl = (link) => {
1010
try {
1111
const pathname = new URL(link).pathname;
@@ -46,7 +46,7 @@ export const DownloadOasButton = ({ url }) => {
4646
flex items-center gap-3 px-6 py-3
4747
bg-[#6BA539] hover:bg-[#5a8f30]
4848
text-white font-semibold rounded-full
49-
shadow-md hover:shadow-lg
49+
shadow-md hover:shadow-lg cursor-pointer
5050
transform hover:scale-105 transition duration-300
5151
"
5252
>
@@ -55,4 +55,4 @@ export const DownloadOasButton = ({ url }) => {
5555
);
5656
};
5757

58-
<DownloadOasButton url="https://demo-url.readme.io/openapi/openapi.json" />
58+
<DownloadOASButton url="https://demo-url.readme.io/openapi/openapi.json" />
7.84 KB
Loading

components/DownloadOasButton/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `<DownloadOasButton/>`
1+
# `<DownloadOASButton/>`
22

33
Overview
44

5-
Add an OpenAPI Download Button to your documentation, allowing users to download your OpenAPI JSON file with one click.
5+
Adds an OpenAPI Download Button to your documentation, allowing users to download your OpenAPI JSON file with one click.
66

77
<img alt="OpenAPI Download Button" src="download-oas-button.png" width="800" />
88

99
Usage
1010

1111
```mdx
12-
<DownloadOasButton url="https://your-domain.com/openapi/openapi.json" />
12+
<DownloadOASButton url="https://your-domain.com/openapi/openapi.json" />
1313
```
1414

1515
### How to Find Your OpenAPI URL

0 commit comments

Comments
 (0)