mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 19:44:21 +00:00
💾 Improve compatibility with old versions
This commit is contained in:
parent
949fa112e4
commit
d63828ae78
3 changed files with 6 additions and 2 deletions
|
@ -6,3 +6,4 @@ Valid strings are:
|
||||||
|
|
||||||
- `"paper"`
|
- `"paper"`
|
||||||
- `"royalblue"`
|
- `"royalblue"`
|
||||||
|
- `"rygblue"` (aliased to `"royalblue"`)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from "react"
|
import React from "react"
|
||||||
|
|
||||||
import skinPaper from "../../../bluelib/src/targets/paper.module.css"
|
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 ContextBluelibSkin from "../../../contexts/ContextBluelibSkin"
|
||||||
import isString from "../../../utils/isString"
|
import isString from "../../../utils/isString"
|
||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
|
@ -9,7 +9,8 @@ import PropTypes from "prop-types"
|
||||||
|
|
||||||
const builtinSkins = {
|
const builtinSkins = {
|
||||||
"paper": skinPaper,
|
"paper": skinPaper,
|
||||||
"royalblue": skinRygblue,
|
"royalblue": skinRoyalblue,
|
||||||
|
"rygblue": skinRoyalblue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@ Valid strings are:
|
||||||
|
|
||||||
- `"paper"`
|
- `"paper"`
|
||||||
- `"royalblue"`
|
- `"royalblue"`
|
||||||
|
- `"rygblue"` (aliased to `"royalblue"`)
|
||||||
|
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
<Bluelib skin={"royalblue"}>
|
<Bluelib skin={"royalblue"}>
|
||||||
|
|
Loading…
Reference in a new issue