diff --git a/src/AlertManager.tsx b/src/AlertManager.tsx index 50a58ff4..233a0765 100644 --- a/src/AlertManager.tsx +++ b/src/AlertManager.tsx @@ -221,7 +221,7 @@ const AlertBanner = ({ alert }: AlertBannerProps) => { className="d-flex justify-content-between flex-wrap" > {alert.message} -
{alertRelativeTime}
+
{alertRelativeTime}
); diff --git a/src/App.tsx b/src/App.tsx index e18e7dc8..1724b3ef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -95,7 +95,7 @@ const Dashboard = () => { return ( - + @@ -108,7 +108,7 @@ const Dashboard = () => { const StandaloneEditor = () => ( - + diff --git a/src/BlockSourcePage.tsx b/src/BlockSourcePage.tsx index 827ea430..89414179 100644 --- a/src/BlockSourcePage.tsx +++ b/src/BlockSourcePage.tsx @@ -114,7 +114,7 @@ export default (): React.ReactElement => { disabled={isDeletingBlock} > {isDeletingBlock && ( - + )} Delete block diff --git a/src/DeviceInterfaceValues.tsx b/src/DeviceInterfaceValues.tsx index 26174336..042197c1 100644 --- a/src/DeviceInterfaceValues.tsx +++ b/src/DeviceInterfaceValues.tsx @@ -202,7 +202,7 @@ export default (): React.ReactElement => { - {deviceId} /{interfaceName} + {deviceId} /{interfaceName} setSelectedGroup(groupName)}> - + {groupName} @@ -73,7 +73,7 @@ const AddToGroupModal = ({ style={{ minWidth: '5em' }} > {isAddingToGroup && ( - + )} Add to group diff --git a/src/DeviceStatusPage/AliasesCard.tsx b/src/DeviceStatusPage/AliasesCard.tsx index adfe415b..c2655406 100644 --- a/src/DeviceStatusPage/AliasesCard.tsx +++ b/src/DeviceStatusPage/AliasesCard.tsx @@ -53,7 +53,7 @@ const AliasesTable = ({ {key} {value} - onEditAliasClick(key)} /> + onEditAliasClick(key)} /> onRemoveAliasClick({ key, value })} /> diff --git a/src/DeviceStatusPage/AttributesCard.tsx b/src/DeviceStatusPage/AttributesCard.tsx index c92248e0..2fc36ac6 100644 --- a/src/DeviceStatusPage/AttributesCard.tsx +++ b/src/DeviceStatusPage/AttributesCard.tsx @@ -55,7 +55,7 @@ const AttributesTable = ({ onEditAttributeClick(key)} /> onRemoveAttributeClick({ key, value })} /> diff --git a/src/DeviceStatusPage/DeviceInfoCard.tsx b/src/DeviceStatusPage/DeviceInfoCard.tsx index bb8167e7..6e6cebdc 100644 --- a/src/DeviceStatusPage/DeviceInfoCard.tsx +++ b/src/DeviceStatusPage/DeviceInfoCard.tsx @@ -56,7 +56,7 @@ const DeviceStatus = ({ status }: DeviceStatusProps): React.ReactElement => { return ( <> - + {statusString} ); @@ -81,7 +81,7 @@ const DeviceInfoCard = ({ Device Info
Device ID
-

{device.id}

+

{device.id}

Device name

{device.hasNameAlias ? device.name : 'No name alias set'}

Status
@@ -94,7 +94,7 @@ const DeviceInfoCard = ({ {device.hasCredentialsInhibited ? ( diff --git a/src/GroupDevicesPage.tsx b/src/GroupDevicesPage.tsx index f6a128a7..bf230451 100644 --- a/src/GroupDevicesPage.tsx +++ b/src/GroupDevicesPage.tsx @@ -65,10 +65,10 @@ const deviceTableRow = ( return ( - + {statusLabel} - + {device.name} {lastEvent} diff --git a/src/HomePage.tsx b/src/HomePage.tsx index 8b0ffd02..f26f59ca 100644 --- a/src/HomePage.tsx +++ b/src/HomePage.tsx @@ -48,14 +48,14 @@ const ServiceStatusRow = ({ service, status }: ServiceStatusRowProps): React.Rea } else if (status === 'ok') { messageCell = ( - + This service is operating normally ); } else { messageCell = ( - + This service appears offline ); @@ -163,7 +163,7 @@ const InterfaceList = ({ onInterfaceClick(e, interfaceName); }} > - + {interfaceName} @@ -245,7 +245,7 @@ const TriggerList = ({ triggers, maxShownTriggers }: TriggerListProps): React.Re {shownTriggers.map((triggerName) => (
  • - + {triggerName}
  • diff --git a/src/InterfacePage.tsx b/src/InterfacePage.tsx index 5f9d7bf0..b1933f64 100644 --- a/src/InterfacePage.tsx +++ b/src/InterfacePage.tsx @@ -206,12 +206,12 @@ export default (): React.ReactElement => { denyMajorChanges /> - {iface.major === 0 && ( diff --git a/src/LoginPage.tsx b/src/LoginPage.tsx index 493e4ba2..fefedfc6 100644 --- a/src/LoginPage.tsx +++ b/src/LoginPage.tsx @@ -232,7 +232,7 @@ const OAuthForm = ({ }; const LeftColumn = (): React.ReactElement => ( - +
    { disabled={isRegisteringBlock || !isValidBlock} > {isRegisteringBlock && ( - + )} Create new block diff --git a/src/NewGroupPage.tsx b/src/NewGroupPage.tsx index 5ce6d198..b405c0f5 100644 --- a/src/NewGroupPage.tsx +++ b/src/NewGroupPage.tsx @@ -159,7 +159,7 @@ export default (): React.ReactElement => { } selected.` : 'Please select at least one device.'} -
    +
    @@ -169,10 +169,10 @@ export default (): React.ReactElement => { selectedDevices={selectedDevices} onToggleDevice={handleDeviceToggle} /> - + diff --git a/src/NewInterfacePage.tsx b/src/NewInterfacePage.tsx index 6250e956..28107be8 100644 --- a/src/NewInterfacePage.tsx +++ b/src/NewInterfacePage.tsx @@ -135,7 +135,7 @@ export default (): React.ReactElement => { - diff --git a/src/NewPipelinePage.tsx b/src/NewPipelinePage.tsx index b116bc61..0d9c2894 100644 --- a/src/NewPipelinePage.tsx +++ b/src/NewPipelinePage.tsx @@ -256,7 +256,7 @@ const NewPipelinePage = (): React.ReactElement => { disabled={!isValidForm || isCreatingPipeline} > {isCreatingPipeline && ( - + )} Create new pipeline diff --git a/src/NewTriggerDeliveryPolicyPage.tsx b/src/NewTriggerDeliveryPolicyPage.tsx index b537cb09..f44d50d3 100644 --- a/src/NewTriggerDeliveryPolicyPage.tsx +++ b/src/NewTriggerDeliveryPolicyPage.tsx @@ -97,7 +97,7 @@ export default (): React.ReactElement => {
    - diff --git a/src/NewTriggerPage.tsx b/src/NewTriggerPage.tsx index 16f41fd0..51036548 100644 --- a/src/NewTriggerPage.tsx +++ b/src/NewTriggerPage.tsx @@ -86,7 +86,7 @@ export default (): React.ReactElement => { fetchInterface={astarte.client.getInterface} /> - diff --git a/src/PipelineSourcePage.tsx b/src/PipelineSourcePage.tsx index 91805321..f75b8166 100644 --- a/src/PipelineSourcePage.tsx +++ b/src/PipelineSourcePage.tsx @@ -103,7 +103,7 @@ export default (): React.ReactElement => { disabled={isDeletingPipeline} > {isDeletingPipeline && ( - + )} Delete pipeline diff --git a/src/RealmSettingsPage.tsx b/src/RealmSettingsPage.tsx index 8df82c42..28f5e8c6 100644 --- a/src/RealmSettingsPage.tsx +++ b/src/RealmSettingsPage.tsx @@ -53,7 +53,7 @@ const RealmSettingsForm = ({ Public key setValues({ ...values, publicKey: e.target.value })} @@ -65,7 +65,7 @@ const RealmSettingsForm = ({ onClick={() => onSubmit(values)} > {isUpdatingSettings && ( - + )} Change diff --git a/src/RegisterDevicePage.tsx b/src/RegisterDevicePage.tsx index c7000520..f6021256 100644 --- a/src/RegisterDevicePage.tsx +++ b/src/RegisterDevicePage.tsx @@ -321,7 +321,7 @@ export default (): React.ReactElement => { Device ID ) => setDeviceId(e.target.value)} @@ -367,14 +367,14 @@ export default (): React.ReactElement => { onRemoveInterface={removeIntrospectionInterface} /> )} - + diff --git a/src/Sidebar.tsx b/src/Sidebar.tsx index 4dec4969..7754afea 100644 --- a/src/Sidebar.tsx +++ b/src/Sidebar.tsx @@ -28,7 +28,7 @@ interface SidebarApiStatusProps { } const SidebarApiStatus = ({ healthy, realm }: SidebarApiStatusProps) => ( - +
    Realm
    @@ -37,7 +37,7 @@ const SidebarApiStatus = ({ healthy, realm }: SidebarApiStatusProps) => ( API Status

    - + {healthy ? 'Up and running' : 'Degraded'}

    @@ -77,7 +77,7 @@ const SidebarItem = ({ icon, label, link }: SidebarItemProps) => { return ( - + {label} ); diff --git a/src/TriggerDeliveryPoliciesPage.tsx b/src/TriggerDeliveryPoliciesPage.tsx index 60de5f85..3c6a7625 100644 --- a/src/TriggerDeliveryPoliciesPage.tsx +++ b/src/TriggerDeliveryPoliciesPage.tsx @@ -35,7 +35,7 @@ interface TriggerPolicyRowProps { const TriggerPolicyRow = ({ name, onClick }: TriggerPolicyRowProps): React.ReactElement => ( @@ -84,7 +84,7 @@ export default (): React.ReactElement => { navigate('/trigger-delivery-policies/new'); }} > - + Install a new trigger delivery policy... diff --git a/src/TriggerDeliveryPolicyPage.tsx b/src/TriggerDeliveryPolicyPage.tsx index 195c0613..eea4727f 100644 --- a/src/TriggerDeliveryPolicyPage.tsx +++ b/src/TriggerDeliveryPolicyPage.tsx @@ -167,7 +167,7 @@ export default (): React.ReactElement => { isSourceVisible={isSourceVisible} /> - @@ -84,7 +84,7 @@ export default (): React.ReactElement => { navigate('/triggers/new'); }} > - + Install a new trigger... diff --git a/src/components/InterfaceEditor.tsx b/src/components/InterfaceEditor.tsx index bdee2f69..364240bc 100644 --- a/src/components/InterfaceEditor.tsx +++ b/src/components/InterfaceEditor.tsx @@ -80,12 +80,12 @@ const MappingRow = ({ className, mapping, onEdit, onDelete }: MappingRowProps) = > {mapping.type} - {onEdit && ( - )} @@ -1000,7 +1000,7 @@ export default ({ className="btn accordion-button w-100 mb-2" onClick={handleAddMapping} > - Add mapping... + Add mapping... {interfaceDraft.mappings.map((mapping, index) => { const isExistingMapping = (initialData?.mappings || []).some( @@ -1037,7 +1037,7 @@ export default ({ {!isReadOnly && ( )} @@ -294,7 +294,7 @@ export default ({ isReadOnly, initialData, onChange }: Props): React.ReactElemen setHandlerToEditIndex(index)} - className="color-grey mr-2" + className="color-grey me-2" /> {!isReadOnly && ( )} @@ -323,7 +323,7 @@ const TriggerActionForm = ({ onEditHttpHeader(headerName)} - className="color-grey mr-2" + className="color-grey me-2" /> onDeleteHttpHeader(headerName)} /> @@ -454,7 +454,7 @@ const TriggerActionForm = ({ {!isReadOnly && ( )} @@ -477,7 +477,7 @@ const TriggerActionForm = ({ onEditAmqpHeader(headerName)} - className="color-grey mr-2" + className="color-grey me-2" /> onDeleteAmqpHeader(headerName)} /> diff --git a/src/components/TriggerEditor/index.tsx b/src/components/TriggerEditor/index.tsx index e209d96a..9c1f9d47 100644 --- a/src/components/TriggerEditor/index.tsx +++ b/src/components/TriggerEditor/index.tsx @@ -532,7 +532,7 @@ export default ({ {isConfirming && ( - + )} {confirmLabel} diff --git a/src/components/modals/Form.tsx b/src/components/modals/Form.tsx index 86aa7649..86b7d31a 100644 --- a/src/components/modals/Form.tsx +++ b/src/components/modals/Form.tsx @@ -163,7 +163,7 @@ const FormModal = ({ >
    - diff --git a/src/ui/BackButton.tsx b/src/ui/BackButton.tsx index 43c6413c..c2d44cfa 100644 --- a/src/ui/BackButton.tsx +++ b/src/ui/BackButton.tsx @@ -27,7 +27,7 @@ interface Props { export default function BackButton({ href }: Props): React.ReactElement { return ( - + ); diff --git a/src/ui/CheckableDeviceTable.tsx b/src/ui/CheckableDeviceTable.tsx index e5a5da36..ea0349ca 100644 --- a/src/ui/CheckableDeviceTable.tsx +++ b/src/ui/CheckableDeviceTable.tsx @@ -78,7 +78,7 @@ const DeviceTableRow = ({ onChange={onToggleChange} /> - + diff --git a/src/ui/SingleCardPage.tsx b/src/ui/SingleCardPage.tsx index aa5c7d34..aee47f42 100644 --- a/src/ui/SingleCardPage.tsx +++ b/src/ui/SingleCardPage.tsx @@ -43,9 +43,9 @@ export default function SingleCardPage({ {title} {docsLink && ( -