Skip to content

Commit 59f8a8d

Browse files
authored
fix: debug flag name (#2781)
1 parent 3989b6b commit 59f8a8d

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

centrifuge-app/src/components/DebugFlags/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type DebugFlagConfig =
3131
}
3232

3333
export type Key =
34-
| 'killApp'
34+
| 'hideApp'
3535
| 'showFinoa'
3636
| 'showOrderExecution'
3737
| 'address'
@@ -55,7 +55,7 @@ export type Key =
5555
| 'showAssets'
5656

5757
export const flagsConfig = {
58-
killApp: {
58+
hideApp: {
5959
alwaysShow: true,
6060
default: true,
6161
type: 'checkbox',

centrifuge-app/src/components/LayoutBase/index.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const LayoutBase = () => {
7474
const location = useLocation()
7575
const isDesktop = useIsAboveBreakpoint('L')
7676
const isMedium = useIsAboveBreakpoint('M')
77-
const { killApp } = useDebugFlags()
77+
const { hideApp } = useDebugFlags()
7878

7979
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
8080

@@ -83,19 +83,19 @@ export const LayoutBase = () => {
8383
setMobileMenuOpen(false)
8484
}, [location])
8585

86-
if (killApp && !location.pathname.startsWith('/migrate')) {
86+
if (hideApp && !location.pathname.startsWith('/migrate')) {
8787
return <Navigate to="/migrate" replace />
8888
}
8989

9090
return (
91-
<Box backgroundColor={killApp ? 'backgroundSecondary' : 'white'}>
92-
{isDesktop && !killApp && (
91+
<Box backgroundColor={hideApp ? 'backgroundSecondary' : 'white'}>
92+
{isDesktop && !hideApp && (
9393
<Box position="fixed" top="1rem" right="1rem" zIndex={theme.zIndices.header} mt={2} marginRight={1}>
9494
<WalletMenu />
9595
</Box>
9696
)}
9797

98-
{killApp && (
98+
{hideApp && (
9999
<Box>
100100
<Box paddingTop="26px" pl={6}>
101101
<LogoCentrifugeText width={60} height={60} />
@@ -107,7 +107,7 @@ export const LayoutBase = () => {
107107
</Box>
108108
)}
109109

110-
{!isDesktop && !killApp && (
110+
{!isDesktop && !hideApp && (
111111
<MobileHeader>
112112
<LogoLink />
113113
<Box display="flex" alignItems="center" marginLeft="auto">
@@ -125,13 +125,13 @@ export const LayoutBase = () => {
125125
</MobileHeader>
126126
)}
127127

128-
{isDesktop && !killApp && (
128+
{isDesktop && !hideApp && (
129129
<Sidebar>
130130
<SidebarMenu />
131131
</Sidebar>
132132
)}
133133

134-
{!isDesktop && !killApp && (
134+
{!isDesktop && !hideApp && (
135135
<Drawer
136136
isOpen={mobileMenuOpen}
137137
onClose={() => setMobileMenuOpen(false)}
@@ -144,7 +144,7 @@ export const LayoutBase = () => {
144144
</Drawer>
145145
)}
146146

147-
{killApp ? (
147+
{hideApp ? (
148148
<Outlet />
149149
) : (
150150
<Content>

centrifuge-app/src/components/Menu/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ const StyledRouterLinkButton = styled(RouterLinkButton)`
6363

6464
export function Menu() {
6565
const pools = usePoolsThatAnyConnectedAddressHasPermissionsFor() || []
66-
const { showSwaps, killApp } = useDebugFlags()
66+
const { showSwaps, hideApp } = useDebugFlags()
6767
const iconSize = 'iconSmall'
6868
const isLarge = useIsAboveBreakpoint('L')
6969

70-
const menuItems = killApp
70+
const menuItems = hideApp
7171
? []
7272
: [
7373
{

centrifuge-app/src/pages/Pools.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { prefetchRoute } from '../components/Root'
1111
import { config } from '../config'
1212

1313
export default function PoolsPage() {
14-
const { killApp } = useDebugFlags()
14+
const { hideApp } = useDebugFlags()
1515
const [, listedTokens] = useListedPools()
1616

1717
const totalValueLocked = React.useMemo(() => {
@@ -32,7 +32,7 @@ export default function PoolsPage() {
3232
prefetchRoute('/pools/tokens')
3333
}, [])
3434

35-
if (killApp) {
35+
if (hideApp) {
3636
return <Navigate to="/migrate" />
3737
}
3838

0 commit comments

Comments
 (0)