forked from backstage/community-plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog: - Removes the logic involved in enabling the RHDH theme based on an environment variable Signed-off-by: Jonathan Kilzi <jkilzi@redhat.com>
- Loading branch information
Showing
6 changed files
with
35 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
workspaces/resource-optimization/packages/app/src/hooks/rhdh-theme.ts
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
workspaces/resource-optimization/packages/app/src/hooks/useRhdhTheme.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { getThemes } from '@redhat-developer/red-hat-developer-hub-theme'; | ||
import LogoFull from '../components/rhdh-logo/RhdhLogoFull'; | ||
import RhdhLogoIcon from '../components/rhdh-logo/RhdhLogoIcon'; | ||
|
||
/** | ||
* Change this value to `true` if you want to use the RHDH theme. | ||
*/ | ||
const ENABLE_RHDH_THEME = false; | ||
|
||
export function useRhdhTheme() { | ||
return ENABLE_RHDH_THEME | ||
? ({ | ||
RhdhLogoFull: LogoFull, | ||
RhdhLogoIcon: RhdhLogoIcon, | ||
get themes() { | ||
return getThemes(); | ||
}, | ||
} as const) | ||
: null; | ||
} |