Skip to content

Commit

Permalink
Merge pull request #53 from rhinobase/merge
Browse files Browse the repository at this point in the history
Merged corp and shared packages into @rafty/ui
  • Loading branch information
MathurAditya724 authored Jun 25, 2024
2 parents 30ee0fc + df84ba8 commit cc35876
Show file tree
Hide file tree
Showing 633 changed files with 45,483 additions and 29,787 deletions.
30 changes: 15 additions & 15 deletions .czrc
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"scopes": [
{
"value": "web",
"name": "web: anything Website specific"
"value": "ui",
"name": "ui: anything ui specific"
},
{
"value": "ui",
"name": "ui: anything UI specific"
"value": "corp",
"name": "corp: anything corp specific"
},
{
"value": "plugin",
"name": "plugin: anything Plugin specific"
"value": "blocks",
"name": "blocks: anything blocks specific"
},
{
"value": "corp",
"name": "corp: anything Corp specific"
"value": "plugin",
"name": "plugin: anything plugin specific"
},
{
"value": "storybook",
"name": "storybook: anything Storybook specific"
"name": "storybook: anything storybook specific"
},
{
"value": "examples",
"name": "examples: anything Examples specific"
"name": "examples: anything examples specific"
},
{
"value": "shared",
"name": "shared: anything Shared package specific"
"value": "icons",
"name": "icons: anything icons specific"
},
{
"value": "icons",
"name": "icons: anything Icons package specific"
"value": "docs",
"name": "docs: anything docs specific"
}
],
"scopesSearchValue": true,
"allowCustomScopes": false
}
}
14 changes: 7 additions & 7 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
{
"recommendations": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
23 changes: 15 additions & 8 deletions apps/docs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{
"extends": ["next", "next/core-web-vitals", "../../.eslintrc.json"],
"extends": [
"plugin:@nx/react-typescript",
"next",
"next/core-web-vitals",
"../../.eslintrc.json"
],
"ignorePatterns": ["!**/*", ".next/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@next/next/no-html-link-for-pages": ["error", "apps/docs/pages"]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
],
"rules": {
"@next/next/no-html-link-for-pages": "off"
},
"env": {
"jest": true
}
]
}
12 changes: 0 additions & 12 deletions apps/docs/.storybook/preview-head.html

This file was deleted.

43 changes: 0 additions & 43 deletions apps/docs/.storybook/storybook.css

This file was deleted.

14 changes: 12 additions & 2 deletions apps/docs/app/Wrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
"use client";
import { usePathname, useSearchParams } from "next/navigation";
import { type PropsWithChildren, useEffect, useState } from "react";
import { type PropsWithChildren, Suspense, useEffect, useState } from "react";
import { Hero } from "../components/Hero";
import { Layout } from "../components/Layout";
import { MobileNavigation } from "../components/MobileNavigation";
import { SearchDialog } from "../components/Search";
import { Header } from "./Header";

export function Wrapper({ children }: PropsWithChildren) {
export function Wrapper(props: PropsWithChildren) {
return (
<Suspense>
<LayoutRender>{props.children}</LayoutRender>
</Suspense>
);
}

function LayoutRender({ children }: PropsWithChildren) {
const pathname = usePathname();
const searchParams = useSearchParams();

const isHomePage = pathname === "/";

const [isDrawerOpen, setDrawerOpen] = useState(false);
const [isSearchOpen, setSearchOpen] = useState(false);

Expand Down
Loading

0 comments on commit cc35876

Please sign in to comment.