- Added logic to change button variant to "primary" or "secondary" based on the current pathname, including the "/flows" route. Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
This commit is contained in:
parent
b969818738
commit
48b80e146f
1 changed files with 1 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ export default function Header(): JSX.Element {
|
|||
className="gap-2"
|
||||
variant={
|
||||
location.pathname.includes("/all") ||
|
||||
location.pathname.includes("/flows") ||
|
||||
location.pathname.includes("/components")
|
||||
? "primary"
|
||||
: "secondary"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue