调整代码
This commit is contained in:
parent
efcc53866a
commit
9a087424b1
|
|
@ -160,7 +160,7 @@ const PanelFooter: React.FC<Props> = ({
|
||||||
{item.list && item.list.length > 0
|
{item.list && item.list.length > 0
|
||||||
? item.list?.map((childItem) => {
|
? item.list?.map((childItem) => {
|
||||||
return (
|
return (
|
||||||
<Link external href={childItem.link} color="textSubtle">
|
<Link key={item.key} external href={childItem.link} color="textSubtle">
|
||||||
<Text>{childItem.name}</Text>
|
<Text>{childItem.name}</Text>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
@ -168,7 +168,7 @@ const PanelFooter: React.FC<Props> = ({
|
||||||
: ""}
|
: ""}
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
) : item.list && item.list.length > 0 ? (
|
) : item.list && item.list.length > 0 ? (
|
||||||
<Link external href={item.list[0].link} color="textSubtle">
|
<Link key={item.key} external href={item.list[0].link} color="textSubtle">
|
||||||
<Image src={item.icon} title={item.name} />
|
<Image src={item.icon} title={item.name} />
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
|
|
@ -184,7 +184,7 @@ const PanelFooter: React.FC<Props> = ({
|
||||||
<div className="content">
|
<div className="content">
|
||||||
{moreList?.map((item) => {
|
{moreList?.map((item) => {
|
||||||
return item.list && item.list.length > 1 ? (
|
return item.list && item.list.length > 1 ? (
|
||||||
<ImageItem>
|
<ImageItem key={item.key}>
|
||||||
<Flex className="content-item" alignItems="center" justifyContent="space-between">
|
<Flex className="content-item" alignItems="center" justifyContent="space-between">
|
||||||
<>
|
<>
|
||||||
<Image src={item.icon} title={item.name} />
|
<Image src={item.icon} title={item.name} />
|
||||||
|
|
@ -203,7 +203,7 @@ const PanelFooter: React.FC<Props> = ({
|
||||||
</div>
|
</div>
|
||||||
</ImageItem>
|
</ImageItem>
|
||||||
) : item.list && item.list.length > 0 ? (
|
) : item.list && item.list.length > 0 ? (
|
||||||
<SingleLink external href={item.list[0].link} color="textSubtle">
|
<SingleLink key={item.key} external href={item.list[0].link} color="textSubtle">
|
||||||
<Image src={item.icon} title={item.name} />
|
<Image src={item.icon} title={item.name} />
|
||||||
</SingleLink>
|
</SingleLink>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ export interface NavProps extends PanelProps {
|
||||||
export interface SocialLink {
|
export interface SocialLink {
|
||||||
icon?: string;
|
icon?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
key?: string | number;
|
||||||
list?: SocialLinkList[];
|
list?: SocialLinkList[];
|
||||||
}
|
}
|
||||||
export interface SocialLinkList {
|
export interface SocialLinkList {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue