Skip to content

Commit

Permalink
⚙️ Update camelCase name icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Sep 19, 2024
1 parent 7032281 commit 98ed284
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions library/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export { default as CloudflareWorkers } from "./library/cloudflareWorkers.js";
export { default as Gif } from "./library/gif.js";
export { default as Rome } from "./library/rome.js";
export { default as Turborepo } from "./library/turborepo.js";
export { default as BiomeOld } from "./library/biome_old.js";
export { default as BiomeOld } from "./library/biomeOld.js";
export { default as Biome } from "./library/biome.js";
export { default as Bun } from "./library/bun.js";
export { default as CMake } from "./library/cmake.js";
Expand All @@ -146,14 +146,14 @@ export { default as Cucumber } from "./library/cucumber.js";
export { default as Drizzle } from "./library/drizzle.js";
export { default as Dune } from "./library/dune.js";
export { default as Lock } from "./library/lock.js";
export { default as OCalm } from "./library/ocalm.js";
export { default as OCalm } from "./library/oCalm.js";
export { default as Razor } from "./library/razor.js";
export { default as Stylelint } from "./library/stylelint.js";
export { default as Earthfile } from "./library/earthfile.js";
export { default as Gatsbyjs } from "./library/gatsbyjs.js";
export { default as Keystatic } from "./library/keystatic.js";
export { default as Knip } from "./library/knip.js";
export { default as PandaCSS } from "./library/pandacss.js";
export { default as PandaCSS } from "./library/pandaCss.js";
export { default as Sanity } from "./library/sanity.js";
export { default as Serverless } from "./library/serverless.js";
export { default as Solidity } from "./library/solidity.js";
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions website/app/components/getCode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { toast } from "sonner";
import axios from "axios";
import { highlight } from "sugar-high";

import { clipboard, lower } from "@/utils";
import { camelCase, clipboard } from "@/utils";
import { globals } from "@/globals";

import { Button, buttonVariants } from "@/ui/button";
Expand Down Expand Up @@ -38,13 +38,13 @@ const GetCode = (props: iGetCode) => {

// ⚙️ Github Urls:
const ghUrl = props.isFolder
? `${globals.githubSrcRepository}library/folders/${lower(
? `${globals.githubSrcRepository}library/folders/${camelCase(
props.componentName,
)}.tsx`
: `${globals.githubSrcRepository}library/${lower(props.componentName)}.tsx`;
: `${globals.githubSrcRepository}library/${camelCase(props.componentName)}.tsx`;
const ghRawUrl = props.isFolder
? `${globals.githubRawUrl}library/folders/${lower(props.componentName)}.tsx`
: `${globals.githubRawUrl}library/${lower(props.componentName)}.tsx`;
? `${globals.githubRawUrl}library/folders/${camelCase(props.componentName)}.tsx`
: `${globals.githubRawUrl}library/${camelCase(props.componentName)}.tsx`;

const handleGetCode = async () => {
setOpen(true);
Expand Down Expand Up @@ -97,7 +97,7 @@ const GetCode = (props: iGetCode) => {
<div className="my-1 flex flex-col space-y-1 overflow-hidden">
<div className="mr-1 flex items-center justify-end space-x-2 font-mono text-[12px] text-zinc-400">
<Reactjs width={16} height={16} />
<span>{lower(props.componentName)}.tsx</span>
<span>{camelCase(props.componentName)}.tsx</span>
</div>
<div className="max-h-80 rounded-lg border border-zinc-800 p-3 font-mono text-sm hover:overflow-auto">
<pre
Expand Down

0 comments on commit 98ed284

Please sign in to comment.