-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4966d30
commit 7318dc1
Showing
4 changed files
with
67 additions
and
22 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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import {Dynamic} from "@components/common/Dynamic"; | ||
import {Space} from "antd"; | ||
import SearchResultType from "@components/search/SearchResultType"; | ||
|
||
export default function SearchResult({type, result}) { | ||
export default function SearchResult({result}) { | ||
return ( | ||
<> | ||
<Dynamic path={`framework/search/${type.id}/Result`} props={result}/> | ||
<Space> | ||
<SearchResultType type={result.type}/> | ||
<Dynamic path={`framework/search/${result.type.id}/Result`} props={result}/> | ||
</Space> | ||
</> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import {Space, Typography} from "antd"; | ||
import {Popover, Typography} from "antd"; | ||
import SearchResultTypeIcon from "@components/search/SearchResultTypeIcon"; | ||
|
||
export default function SearchResultType({type}) { | ||
return ( | ||
<> | ||
<Space> | ||
<SearchResultTypeIcon type={type}/> | ||
{type.name} | ||
<Typography.Text type="secondary" italic>{type.description}</Typography.Text> | ||
</Space> | ||
<Popover | ||
title={type.name} | ||
content={<Typography.Text type="secondary">{type.description}</Typography.Text>} | ||
> | ||
<div> | ||
<SearchResultTypeIcon type={type}/> | ||
</div> | ||
</Popover> | ||
</> | ||
) | ||
} |
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