Skip to content

Commit

Permalink
pivoting because master told me to
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed Jun 10, 2024
1 parent 2323939 commit e9bebc7
Show file tree
Hide file tree
Showing 33 changed files with 1,609 additions and 1,175 deletions.
3 changes: 1 addition & 2 deletions packages/ui/app/src/sidebar/BuiltWithFern.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { FernTooltip, FernTooltipProvider } from "@fern-ui/components";
import { FernLogo, FernTooltip, FernTooltipProvider } from "@fern-ui/components";
import { useIsHovering } from "@fern-ui/react-commons";
import cn from "clsx";
import { useContext } from "react";
import { FernLink } from "../components/FernLink";
import { FeatureFlagContext } from "../contexts/FeatureFlagContext";
import { useDocsContext } from "../contexts/docs-context/useDocsContext";
import { FernLogo } from "./FernLogo";

const BUILT_WITH_FERN_TOOLTIP_CONTENT = "Handcrafted SDKs and Docs for your API";

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outDir": "./dist",
"rootDir": "."
},
"include": ["./src/**/*"],
"include": ["./src/**/*", "../components/src/FernLogo.tsx"],
"references": [
{ "path": "../../commons/core-utils" },
{ "path": "../../commons/loadable" },
Expand Down
12 changes: 12 additions & 0 deletions packages/ui/components/src/FernDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,18 @@ function FernDropdownItemValue({
},
renderButtonContent(),
)
) : option.href != null ? (
<button
ref={option.value === value ? activeRef : undefined}
className={cn("fern-dropdown-item", option.className)}
onClick={() => {
return () => {
window.open(option.href, "_blank", "noopener");
};
}}
>
{renderButtonContent()}
</button>
) : (
<button
ref={option.value === value ? activeRef : undefined}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/ui/components/src/FontAwesomeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getIconUrl(icon: string | undefined): string {
}

function getCdnHost() {
const CDN_HOST = process.env.NEXT_PUBLIC_FONTAWESOME_CDN_HOST;
const CDN_HOST = process.env?.NEXT_PUBLIC_FONTAWESOME_CDN_HOST;
if (CDN_HOST == null) {
return "https://fontawesome-cdn.vercel.app";
}
Expand Down
1 change: 1 addition & 0 deletions packages/ui/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export * from "./FernChip";
export * from "./FernCollapse";
export * from "./FernDropdown";
export * from "./FernInput";
export * from "./FernLogo";
export * from "./FernModal";
export * from "./FernNumericInput";
export * from "./FernRadioGroup";
Expand Down
Loading

0 comments on commit e9bebc7

Please sign in to comment.