Skip to content

Commit

Permalink
Merge pull request #12 from kwooshung/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
kwooshung authored Aug 26, 2024
2 parents b3f26eb + baeebcd commit bc1a4df
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/.history
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
3.0.3
3.0.2
3.0.1
3.0.0
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.en.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 3.0.3 `2024-08-26`
### 🐛 Fix
- Fix cookie settings ([#9bfa6d9](https://github.com/kwooshung/React-Themes/commit/9bfa6d93b8e76832000c187503524e22b9614cda))

## 🎉 3.0.2 `2024-08-26`
### ✨ Feature
- Update dependence ([#c7684b0](https://github.com/kwooshung/React-Themes/commit/c7684b0509313659d9ee251be1d8d366ab0f57ac))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.ja.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 3.0.3 `2024-08-26`
### 🐛 Fix
- Cookie設定を修正します ([#9bfa6d9](https://github.com/kwooshung/React-Themes/commit/9bfa6d93b8e76832000c187503524e22b9614cda))

## 🎉 3.0.2 `2024-08-26`
### ✨ Feature
- 依存関係を更新します ([#c7684b0](https://github.com/kwooshung/React-Themes/commit/c7684b0509313659d9ee251be1d8d366ab0f57ac))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.ko.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 3.0.3 `2024-08-26`
### 🐛 Fix
- 쿠키 설정을 수정하십시오 ([#9bfa6d9](https://github.com/kwooshung/React-Themes/commit/9bfa6d93b8e76832000c187503524e22b9614cda))

## 🎉 3.0.2 `2024-08-26`
### ✨ Feature
- 의존성 업데이트 ([#c7684b0](https://github.com/kwooshung/React-Themes/commit/c7684b0509313659d9ee251be1d8d366ab0f57ac))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.ru.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 3.0.3 `2024-08-26`
### 🐛 Fix
- Исправьте настройки cookie ([#9bfa6d9](https://github.com/kwooshung/React-Themes/commit/9bfa6d93b8e76832000c187503524e22b9614cda))

## 🎉 3.0.2 `2024-08-26`
### ✨ Feature
- Обновить зависимость ([#c7684b0](https://github.com/kwooshung/React-Themes/commit/c7684b0509313659d9ee251be1d8d366ab0f57ac))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.zh-cn.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 3.0.3 `2024-08-26`
### 🐛 Fix
- 修复cookie设置 ([#9bfa6d9](https://github.com/kwooshung/React-Themes/commit/9bfa6d93b8e76832000c187503524e22b9614cda))

## 🎉 3.0.2 `2024-08-26`
### ✨ Feature
- 更新依赖 ([#c7684b0](https://github.com/kwooshung/React-Themes/commit/c7684b0509313659d9ee251be1d8d366ab0f57ac))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.zh-tw.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 3.0.3 `2024-08-26`
### 🐛 Fix
- 修復cookie設置 ([#9bfa6d9](https://github.com/kwooshung/React-Themes/commit/9bfa6d93b8e76832000c187503524e22b9614cda))

## 🎉 3.0.2 `2024-08-26`
### ✨ Feature
- 更新依賴 ([#c7684b0](https://github.com/kwooshung/React-Themes/commit/c7684b0509313659d9ee251be1d8d366ab0f57ac))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kwooshung/react-themes",
"version": "3.0.2",
"version": "3.0.3",
"title": "react-themes",
"description": "It is more convenient to use svg as React theme, which has strong operability and high degree of freedom.",
"private": false,
Expand Down
4 changes: 2 additions & 2 deletions src/themes/themesProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const ThemesProvider: React.FC<IThemesProviderProps> = ({ defaultValue = 'auto',
const theme = useThemes(defaultValue, list);

useEffect(() => {
saveKey && datas.Cookie.set(saveKey, theme.themeValue, saveExpired);
}, [theme.themeValue, saveKey, saveExpired]);
saveKey && datas.Cookie.set(saveKey, theme.themeName, saveExpired);
}, [theme.themeName, saveKey, saveExpired]);

return <ThemesContext.Provider value={theme}>{children}</ThemesContext.Provider>;
};
Expand Down

0 comments on commit bc1a4df

Please sign in to comment.