Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 5384d07

Browse files
committed
fix(docs): use relative licenses.txt path
The GitHub pages for practical-react-components is served from a folder, so the path to the licenses.txt file needs to be relative.
1 parent cb3b362 commit 5384d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/src/Licenses.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const Licenses: React.FC<ModalProps> = ({ onClose, ...props }) => {
2222

2323
useEffect(() => {
2424
const fix = async () => {
25-
const response = await fetch('/licenses.txt')
25+
const response = await fetch('licenses.txt')
2626
const data = await response.text()
2727
setLicense(data)
2828
}

0 commit comments

Comments
 (0)