@@ -31,15 +31,13 @@ import Message from '@ttn-lw/lib/components/message'
3131
3232import { GsFrequencyPlansSelect as FrequencyPlansSelect } from '@console/containers/freq-plans-select'
3333
34- import { selectGsConfig , selectPluginTTSCloud } from '@ttn-lw/lib/selectors/env'
34+ import { selectGsConfig } from '@ttn-lw/lib/selectors/env'
3535import sharedMessages from '@ttn-lw/lib/shared-messages'
3636import tooltipIds from '@ttn-lw/lib/constants/tooltip-ids'
3737import getHostFromUrl from '@ttn-lw/lib/host-from-url'
3838
3939const { enabled : gsEnabled , base_url : gsBaseURL } = selectGsConfig ( )
40- // TTI only.
41- const smUrl = selectPluginTTSCloud ( ) . subscription_management_url
42- // End TTI.
40+ const smUrl = 'https://accounts.thethingsindustries.com'
4341
4442const m = defineMessages ( {
4543 claimWarning :
@@ -57,17 +55,14 @@ const initialValues = {
5755 target_gateway_server_address : gsEnabled ? getHostFromUrl ( gsBaseURL ) : '' ,
5856}
5957
60- // TTI only.
6158const ownerTokenTypes = [
6259 { name : 'gateway' , title : sharedMessages . gateway } ,
6360 { name : 'fleet' , title : m . fleet } ,
6461]
65- // End TTI.
6662
6763const GatewayClaimFormSection = ( ) => {
6864 const { values, addToFieldRegistry, removeFromFieldRegistry, setValues } = useFormikContext ( )
6965 const isManaged = values . _inputMethod === 'managed'
70- // TTI only.
7166 const isFleet = values . _isFleet
7267
7368 const [ activeOwnerTokenType , setActiveOwnerTokenType ] = React . useState (
@@ -92,7 +87,6 @@ const GatewayClaimFormSection = () => {
9287 } ,
9388 [ setValues ] ,
9489 )
95- // End TTI.
9690
9791 // Register hidden fields so they don't get cleaned.
9892 useEffect ( ( ) => {
@@ -116,7 +110,6 @@ const GatewayClaimFormSection = () => {
116110 className = "mb-0"
117111 />
118112 </ Form . InfoField >
119- { /** TTI only. */ }
120113 < Message content = { sharedMessages . ownerToken } className = "fw-bold" />
121114 < Tabs
122115 active = { activeOwnerTokenType }
@@ -133,19 +126,15 @@ const GatewayClaimFormSection = () => {
133126 component = "div"
134127 />
135128 ) }
136- { /** End TTI. */ }
137129 </ >
138130 ) }
139131 < Form . Field
140132 required
141133 title = { sharedMessages . ownerToken }
142- // TTI only.
143134 showTitle = { ! isManaged }
144- // End TTI.
145135 name = "authenticated_identifiers.authentication_code"
146136 tooltipId = { tooltipIds . CLAIM_AUTH_CODE }
147137 component = { Input }
148- // TTI only.
149138 description = { activeOwnerTokenType === 'fleet' ? sharedMessages . fleetTokenInfo : undefined }
150139 descriptionValues = { {
151140 Link : val => (
@@ -154,7 +143,6 @@ const GatewayClaimFormSection = () => {
154143 </ Link . Anchor >
155144 ) ,
156145 } }
157- // End TTI.
158146 encode = { btoa }
159147 decode = { atob }
160148 sensitive
0 commit comments