Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Fix Teams' theme list item end media styles @mnajdova ([#1448](https://github.com/stardust-ui/react/pull/1448))
- Fix the order of the fela plugin @mnajdova ([#1461](https://github.com/stardust-ui/react/pull/1461))

### Documentation
- Remove unfinished themes from the docs themes dropdown on components examples pages @alinais ([#1473](https://github.com/stardust-ui/react/pull/1473)

<!--------------------------------[ v0.32.0 ]------------------------------- -->
## [v0.32.0](https://github.com/stardust-ui/react/tree/v0.32.0) (2019-06-03)
[Compare changes](https://github.com/stardust-ui/react/compare/v0.31.0...v0.32.0)
Expand Down
10 changes: 6 additions & 4 deletions docs/src/context/ThemeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import { themes } from '@stardust-ui/react'
type ThemeName = keyof typeof themes
type ThemeOption = { text: string; value: ThemeName }

const themeOptions: ThemeOption[] = Object.keys(themes).map(key => ({
text: _.startCase(key),
value: key as ThemeName,
}))
const themeOptions: ThemeOption[] = Object.keys(themes)
.filter(key => !_.includes(['base', 'fontAwesome'], key))
.map(key => ({
text: _.startCase(key),
value: key as ThemeName,
}))

export type ThemeContextData = {
themeName: ThemeName
Expand Down