Skip to content

Commit cbeb72e

Browse files
committed
web: add icons to newtork connections actions
1 parent 2e92f5e commit cbeb72e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

web/src/components/network/NetworkPage.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import React, { useState } from "react";
2424
import { Flex, Stack, Tab, Tabs, TabTitleText } from "@patternfly/react-core";
2525
import { Link, NestedContent, Page } from "~/components/core";
2626
import Text from "~/components/core/Text";
27+
import Icon from "~/components/layout/Icon";
2728
import NoPersistentConnectionsAlert from "~/components/network/NoPersistentConnectionsAlert";
2829
import ConnectionsTable from "~/components/network/ConnectionsTable";
2930
import DevicesTable from "~/components/network/DevicesTable";
@@ -63,16 +64,26 @@ export default function NetworkPage() {
6364
<Page.Section
6465
pfCardProps={{ isCompact: true, component: "div" }}
6566
actions={
66-
<Flex alignItems={{ default: "alignItemsCenter" }}>
67+
<>
6768
<Link to={NETWORK.newConnection} variant="plain">
68-
{_("Add connection")}
69+
<Flex
70+
gap={{ default: "gapXs" }}
71+
alignItems={{ default: "alignItemsCenter" }}
72+
>
73+
<Icon name="add_circle" /> {_("Add connection")}
74+
</Flex>
6975
</Link>
7076
{state.wirelessEnabled && (
7177
<Link to={NETWORK.newWiFiConnection} variant="plain">
72-
{_("Connect to Wi-Fi network")}
78+
<Flex
79+
gap={{ default: "gapSm" }}
80+
alignItems={{ default: "alignItemsCenter" }}
81+
>
82+
<Icon name="wifi" /> {_("Connect to Wi-Fi network")}
83+
</Flex>
7384
</Link>
7485
)}
75-
</Flex>
86+
</>
7687
}
7788
>
7889
<ConnectionsTable />

0 commit comments

Comments
 (0)