Skip to content

Commit 63cd4e9

Browse files
committed
Fix icon && Loading indicator
1 parent eb32e0f commit 63cd4e9

8 files changed

Lines changed: 12 additions & 31 deletions

File tree

-4.27 KB
Loading
-208 Bytes
Loading
-3.42 KB
Loading
-848 Bytes
Loading

src/components/LayoutApp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback, useEffect } from 'react';
1+
import React, { useCallback, useEffect, useState } from 'react';
22
import { Layout, Menu, Typography, Button, Badge, Select, } from 'antd';
33
import { CopyrightCircleOutlined, FullscreenOutlined, ArrowsAltOutlined } from '@ant-design/icons';
44
import { createFromIconfontCN } from '@ant-design/icons';
@@ -174,8 +174,8 @@ export default function LayoutApp ( props: {
174174
</Menu.Item>
175175
) );
176176

177-
const useMenuIndex = PersistedState( 'tab_index_cache' );
178-
const [ index, setIndex ] = useMenuIndex( '1' );
177+
//const useMenuIndex = PersistedState( 'tab_index_cache' ); // Disabled for now
178+
const [ index, setIndex ] = useState( '1' );
179179

180180
const navigate = ( { componentRoute, key }: { componentRoute: React.FunctionComponent; key: string } ) => {
181181
goTo( componentRoute );

src/components/linux/ReverseShell.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function ReverseShell () {
9595
</Clipboard>
9696
</div>
9797
<Divider orientation='center'>Zsh</Divider>
98-
<div style={{ padding: 10, marginTop: 15 }} key='a'>
98+
<div style={{ padding: 10, marginTop: 15 }} key='b'>
9999
<Paragraph>
100100
<pre>
101101
<Text copyable>{zsh_rshell}</Text>
@@ -121,7 +121,7 @@ export default function ReverseShell () {
121121
</Clipboard>
122122
</div>
123123
<Divider orientation='center'>Netcat</Divider>
124-
<div style={{ padding: 10, marginTop: 15 }} key='b'>
124+
<div style={{ padding: 10, marginTop: 15 }} key='c'>
125125
<Paragraph>
126126
<pre>
127127
<Text copyable>{netcat_rshell}</Text>
@@ -148,7 +148,7 @@ export default function ReverseShell () {
148148
</div>
149149
<Divider orientation='center'>PHP</Divider>
150150
<div
151-
key='c'
151+
key='d'
152152
style={{
153153
padding: 15,
154154
marginTop: 15
@@ -181,7 +181,7 @@ export default function ReverseShell () {
181181
</div>
182182

183183
<Divider orientation='center'>PowerShell</Divider>
184-
<div style={{ padding: 10, marginTop: 15 }} key='a'>
184+
<div style={{ padding: 10, marginTop: 15 }} key='e'>
185185
<Paragraph>
186186
<pre>
187187
<Text copyable>{PS_rshell}</Text>
@@ -207,7 +207,7 @@ export default function ReverseShell () {
207207
</Clipboard>
208208
</div>
209209
<div
210-
key='d'
210+
key='f'
211211
style={{
212212
padding: 15,
213213
marginTop: 15
@@ -241,7 +241,7 @@ export default function ReverseShell () {
241241
</div>
242242
<Divider orientation='center'>Python</Divider>
243243
<div
244-
key='e'
244+
key='g'
245245
style={{
246246
padding: 15,
247247
marginTop: 15
@@ -274,7 +274,7 @@ export default function ReverseShell () {
274274
</div>
275275
<Divider orientation='center'>Ruby</Divider>
276276
<div
277-
key='f'
277+
key='h'
278278
style={{
279279
padding: 15,
280280
marginTop: 15
@@ -306,7 +306,7 @@ export default function ReverseShell () {
306306
</Clipboard>
307307
</div>
308308
<Divider orientation='center'>Telnet</Divider>
309-
<div style={{ padding: 15, marginTop: 15 }} key='g'>
309+
<div style={{ padding: 15, marginTop: 15 }} key='i'>
310310
<Paragraph>
311311
<pre>
312312
<Text copyable>{telnet_rshell}</Text>

src/theming/LoadingIndicator.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/theming/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as React from 'react';
22
import { Suspense, useEffect } from 'react';
33
import { LazyStyle, Theme } from './types';
4-
import LoadingIndicator from './LoadingIndicator';
54

65
export function useApplyStyles ( styles: LazyStyle ): void {
76
useEffect( () => {
@@ -19,7 +18,7 @@ export default function DynamicTheme ( { themes, value }: DynamicThemeProps ) {
1918
const Component: any = themes.find( theme => theme.id === value )?.component;
2019

2120
return (
22-
<Suspense fallback={<LoadingIndicator tip="loading" />}>
21+
<Suspense fallback={<div>loading styles..</div>}>
2322
<Component />
2423
</Suspense>
2524
);

0 commit comments

Comments
 (0)