@@ -5,13 +5,25 @@ import {withRouter, RouteComponentProps} from 'react-router-dom'
55import { isEmpty } from 'lodash'
66
77// Components
8- import { Sort , ComponentSize , EmptyState } from '@influxdata/clockface'
8+ import {
9+ Sort ,
10+ ComponentSize ,
11+ EmptyState ,
12+ BannerPanel ,
13+ FlexBox ,
14+ FlexDirection ,
15+ AlignItems ,
16+ Gradients ,
17+ IconFont ,
18+ InfluxColors ,
19+ } from '@influxdata/clockface'
920import SearchWidget from 'src/shared/components/search_widget/SearchWidget'
1021import TokenList from 'src/authorizations/components/TokenList'
1122import FilterList from 'src/shared/components/FilterList'
1223import TabbedPageHeader from 'src/shared/components/tabbed_page/TabbedPageHeader'
1324import GenerateTokenDropdown from 'src/authorizations/components/GenerateTokenDropdown'
1425import ResourceSortDropdown from 'src/shared/components/resource_sort_dropdown/ResourceSortDropdown'
26+ import TokensRedesignBanner from 'src/authorizations/components/TokensRedesignBanner'
1527
1628// Types
1729import { AppState , Authorization , ResourceType } from 'src/types'
@@ -81,27 +93,42 @@ class TokensTab extends PureComponent<Props, State> {
8193
8294 return (
8395 < >
84- < TabbedPageHeader
85- childrenLeft = { leftHeaderItems }
86- childrenRight = { rightHeaderItems }
87- />
88- < FilterAuthorizations
89- list = { tokens }
90- searchTerm = { searchTerm }
91- searchKeys = { this . searchKeys }
96+ < FlexBox
97+ direction = { FlexDirection . Column }
98+ alignItems = { AlignItems . Center }
99+ margin = { ComponentSize . Large }
92100 >
93- { filteredAuths => (
94- < TokenList
95- auths = { filteredAuths }
96- emptyState = { this . emptyState }
97- searchTerm = { searchTerm }
98- sortKey = { sortKey }
99- sortDirection = { sortDirection }
100- sortType = { sortType }
101- onClickColumn = { this . handleClickColumn }
102- />
103- ) }
104- </ FilterAuthorizations >
101+ < BannerPanel
102+ size = { ComponentSize . ExtraSmall }
103+ gradient = { Gradients . PolarExpress }
104+ icon = { IconFont . Bell }
105+ hideMobileIcon = { true }
106+ textColor = { InfluxColors . Yeti }
107+ >
108+ < TokensRedesignBanner />
109+ </ BannerPanel >
110+ < TabbedPageHeader
111+ childrenLeft = { leftHeaderItems }
112+ childrenRight = { rightHeaderItems }
113+ />
114+ < FilterAuthorizations
115+ list = { tokens }
116+ searchTerm = { searchTerm }
117+ searchKeys = { this . searchKeys }
118+ >
119+ { filteredAuths => (
120+ < TokenList
121+ auths = { filteredAuths }
122+ emptyState = { this . emptyState }
123+ searchTerm = { searchTerm }
124+ sortKey = { sortKey }
125+ sortDirection = { sortDirection }
126+ sortType = { sortType }
127+ onClickColumn = { this . handleClickColumn }
128+ />
129+ ) }
130+ </ FilterAuthorizations >
131+ </ FlexBox >
105132 </ >
106133 )
107134 }
0 commit comments