-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dropdown no options component (#716)
* Fix no options import * Export no options props
- Loading branch information
Showing
3 changed files
with
17 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ReactNode } from "react"; | ||
import { Text } from "~/components"; | ||
|
||
export interface NoOptionsProps { | ||
children: ReactNode; | ||
} | ||
|
||
export const NoOptions = ({ children }: NoOptionsProps) => { | ||
return ( | ||
<Text as="p" padding={2} textAlign="center" fontStyle="italic"> | ||
{children} | ||
</Text> | ||
); | ||
}; |
14 changes: 1 addition & 13 deletions
14
src/components/BaseSelect/NoOptions.tsx → ...omponents/BaseSelect/NoOptions/helpers.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./NoOptions"; | ||
export * from "./helpers"; |
d636317
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
macaw-ui-next – ./
macaw-ui-next-saleorcommerce.vercel.app
macaw-ui-next.vercel.app
macaw-ui-next-git-canary-saleorcommerce.vercel.app