-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: treeSelect uikit and PoolsTypeFilter widget (#10136)
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new `TreeSelect` component in the `@pancakeswap/uikit` package. It also adds the `PoolsTypeFilter` component to filter pool types in the FarmWidget. ### Detailed summary - Added `TreeSelect` component to `@pancakeswap/uikit` - Introduced `PoolsTypeFilter` component for filtering pool types in FarmWidget - Updated `MultiSelect` component UI and functionality > The following files were skipped due to too many changes: `packages/uikit/src/components/MultiSelect/assets/empty-message.svg`, `packages/uikit/src/components/TreeSelect/TreeSelect.tsx`, `packages/uikit/src/components/MultiSelect/MultiSelect.tsx` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
Showing
14 changed files
with
619 additions
and
65 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,6 @@ | ||
--- | ||
'@pancakeswap/widgets-internal': minor | ||
'@pancakeswap/uikit': minor | ||
--- | ||
|
||
new UIKit: TreeSelect |
16 changes: 16 additions & 0 deletions
16
packages/uikit/src/components/MultiSelect/EmptyMessage.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,16 @@ | ||
import { styled } from "styled-components"; | ||
import { Image } from "../Image"; | ||
import emptyMessageIcon from "./assets/empty-message.svg"; | ||
|
||
const EmptyTips = styled.div` | ||
font-size: 14px; | ||
line-height: 21px; | ||
text-align: center; | ||
margin: 10px; | ||
`; | ||
export const EmptyMessage = ({ msg }: { msg?: string }) => ( | ||
<> | ||
<Image src={emptyMessageIcon} width={80} height={80} /> | ||
<EmptyTips>{msg ?? "No data"}</EmptyTips> | ||
</> | ||
); |
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
10 changes: 10 additions & 0 deletions
10
packages/uikit/src/components/MultiSelect/assets/empty-message.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.