Skip to content

Commit b505a78

Browse files
authored
feat: add the upgrade now button to flows (#3698)
1 parent 69c9148 commit b505a78

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

src/flows/components/FlowsIndex.tsx

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
// Libraries
22
import React, {useState, useContext, useRef} from 'react'
3-
import {DapperScrollbars, Sort} from '@influxdata/clockface'
43

54
// Components
6-
import {Page, PageHeader} from '@influxdata/clockface'
5+
import {
6+
DapperScrollbars,
7+
FlexBox,
8+
FlexDirection,
9+
JustifyContent,
10+
Page,
11+
PageHeader,
12+
Sort,
13+
} from '@influxdata/clockface'
714
import {FlowListContext, FlowListProvider} from 'src/flows/context/flow.list'
815
import FlowCards from 'src/flows/components/FlowCards'
916
import SearchWidget from 'src/shared/components/search_widget/SearchWidget'
1017
import ResourceSortDropdown from 'src/shared/components/resource_sort_dropdown/ResourceSortDropdown'
1118
import {SortTypes} from 'src/shared/utils/sort'
1219
import PresetFlows from 'src/flows/components/PresetFlows'
20+
import RateLimitAlert from 'src/cloud/components/RateLimitAlert'
21+
1322
// Utils
1423
import {pageTitleSuffixer} from 'src/shared/utils/pageTitles'
1524
import {PROJECT_NAME_PLURAL} from 'src/flows'
@@ -115,7 +124,14 @@ const FlowsIndex = () => {
115124
fullWidth={false}
116125
className={`${showButtonMode && 'withButtonHeader'}`}
117126
>
118-
<Page.Title title={PROJECT_NAME_PLURAL} />
127+
<FlexBox
128+
direction={FlexDirection.Row}
129+
justifyContent={JustifyContent.SpaceBetween}
130+
stretchToFitWidth
131+
>
132+
<Page.Title title={PROJECT_NAME_PLURAL} />
133+
<RateLimitAlert />
134+
</FlexBox>
119135
{showButtonMode && (
120136
<>
121137
<PresetFlowsButtons />

0 commit comments

Comments
 (0)