1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00

💾 Improve compatibility with old versions

This commit is contained in:
Steffo 2021-07-19 18:55:37 +02:00
parent 949fa112e4
commit d63828ae78
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 6 additions and 2 deletions

View file

@ -6,3 +6,4 @@ Valid strings are:
- `"paper"`
- `"royalblue"`
- `"rygblue"` (aliased to `"royalblue"`)

View file

@ -1,7 +1,7 @@
import React from "react"
import skinPaper from "../../../bluelib/src/targets/paper.module.css"
import skinRygblue from "../../../bluelib/src/targets/royalblue.module.css"
import skinRoyalblue from "../../../bluelib/src/targets/royalblue.module.css"
import ContextBluelibSkin from "../../../contexts/ContextBluelibSkin"
import isString from "../../../utils/isString"
import PropTypes from "prop-types"
@ -9,7 +9,8 @@ import PropTypes from "prop-types"
const builtinSkins = {
"paper": skinPaper,
"royalblue": skinRygblue,
"royalblue": skinRoyalblue,
"rygblue": skinRoyalblue,
}

View file

@ -9,6 +9,8 @@ Valid strings are:
- `"paper"`
- `"royalblue"`
- `"rygblue"` (aliased to `"royalblue"`)
```jsx
<Bluelib skin={"royalblue"}>