Style cleanup

This commit is contained in:
Sacha Weatherstone
2023-01-02 19:52:09 +11:00
parent 9c0ff452bf
commit a1d97e0978
6 changed files with 44 additions and 64 deletions
+8 -20
View File
@@ -28,26 +28,14 @@ export const ChannelsPage = (): JSX.Element => {
<TabbedContent
tabs={tabs}
actions={[
() => (
<Button
iconBefore={<ArrowDownOnSquareStackIcon className="w-4" />}
onClick={() => {
setImportDialogOpen(true);
}}
>
Import
</Button>
),
() => (
<Button
iconBefore={<QrCodeIcon className="w-4" />}
onClick={() => {
setQRDialogOpen(true);
}}
>
QR Code
</Button>
)
{
icon: <ArrowDownOnSquareStackIcon className="w-4" />,
action: () => setImportDialogOpen(true)
},
{
icon: <QrCodeIcon className="w-4" />,
action: () => setQRDialogOpen(true)
}
]}
/>
);
+1 -15
View File
@@ -33,19 +33,5 @@ export const ConfigPage = (): JSX.Element => {
}
];
return (
<TabbedContent
tabs={tabs}
actions={[
() => (
<Button
disabled={!pendingSettingsChanges}
onClick={connection?.commitEditSettings}
>
Commit Changes
</Button>
)
]}
/>
);
return <TabbedContent tabs={tabs} />;
};
+4 -8
View File
@@ -30,14 +30,10 @@ export const MessagesPage = (): JSX.Element => {
<TabbedContent
tabs={tabs}
actions={[
() => (
<IconButton
icon={<PencilIcon className="h-4" />}
onClick={() => {
setActivePage("channels");
}}
/>
)
{
icon: <PencilIcon className="h-4" />,
action: () => setActivePage("channels")
}
]}
/>
</div>