forked from gitpod-io/gitpod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update product icon (gitpod-io#19315)
- Loading branch information
Showing
5 changed files
with
216 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Copyright (c) 2024 Gitpod GmbH. All rights reserved. | ||
* Licensed under the GNU Affero General Public License (AGPL). | ||
* See License.AGPL.txt in the project root for license information. | ||
*/ | ||
|
||
import { useContext } from "react"; | ||
import { useIsDataOps } from "../data/featureflag-query"; | ||
import { ThemeContext } from "../theme-context"; | ||
import gitpodIcon from "../icons/gitpod.svg"; | ||
import dataOpsIconLight from "../icons/dataops-light.svg"; | ||
import dataOpsIconDark from "../icons/dataops-dark.svg"; | ||
|
||
export function ProductLogo(props: { className: string }) { | ||
const { isDark } = useContext(ThemeContext); | ||
const isDataOps = useIsDataOps(); | ||
return ( | ||
<> | ||
{isDataOps ? ( | ||
<img src={isDark ? dataOpsIconDark : dataOpsIconLight} alt="Dataops logo" className={props.className} /> | ||
) : ( | ||
<img src={gitpodIcon} alt="Gitpod's logo" className={props.className} /> | ||
)} | ||
</> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.