-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change components to clients Fix console warning
- Loading branch information
1 parent
fe1c9bf
commit db05758
Showing
15 changed files
with
162 additions
and
103 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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
apps/web-remix/app/components/form/inputs/select/select.input.css
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.rc-select{ | ||
@apply w-full | ||
@apply !w-full | ||
} | ||
|
||
.rc-select .rc-select-selector{ | ||
|
17 changes: 9 additions & 8 deletions
17
apps/web-remix/app/components/form/inputs/select/select.input.tsx
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
16 changes: 10 additions & 6 deletions
16
...eb-remix/app/components/menu/MenuImpl.tsx → ...remix/app/components/menu/Menu.client.tsx
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 |
---|---|---|
@@ -1,18 +1,22 @@ | ||
import classNames from "classnames"; | ||
import RcMenu, { MenuProps } from "rc-menu"; | ||
import React from "react"; | ||
import classNames from "classnames"; | ||
import "rc-menu/assets/index.css"; | ||
|
||
const Menu: React.FC<MenuProps> = ({ className, ...rest }) => { | ||
export const MenuClient: React.FC<MenuProps> = ({ | ||
className, | ||
children, | ||
...rest | ||
}) => { | ||
return ( | ||
<RcMenu | ||
className={classNames( | ||
"border border-neutral-100 bg-neutral-700 !rounded-lg !shadow-none !p-0 overflow-hidden divide-y divide-solid", | ||
className, | ||
className | ||
)} | ||
{...rest} | ||
/> | ||
> | ||
{children} | ||
</RcMenu> | ||
); | ||
}; | ||
|
||
export default Menu; |
This file was deleted.
Oops, something went wrong.
23 changes: 2 additions & 21 deletions
23
...ges/pipelines/CodePreview/CodePreview.tsx → ...elines/CodePreview/CodePreview.client.tsx
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
23 changes: 23 additions & 0 deletions
23
apps/web-remix/app/components/pages/pipelines/CodePreview/CodePreviewWrapper.tsx
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,23 @@ | ||
import React, { ReactNode } from "react"; | ||
import { CodePreviewClient, CodePreviewProps } from "./CodePreview.client"; | ||
import { ClientOnly } from "remix-utils/client-only"; | ||
interface CodePreviewWrapperProps extends CodePreviewProps { | ||
children?: (value: string) => ReactNode; | ||
} | ||
|
||
export const CodePreviewWrapper: React.FC<CodePreviewWrapperProps> = ({ | ||
children, | ||
...props | ||
}) => { | ||
return ( | ||
<div> | ||
<div className="flex gap-2 justify-end px-1"> | ||
{children?.(props.value)} | ||
</div> | ||
|
||
<ClientOnly fallback={null}> | ||
{() => <CodePreviewClient {...props} />} | ||
</ClientOnly> | ||
</div> | ||
); | ||
}; |
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
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
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
Oops, something went wrong.