mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
chore(console): component rename (#5480)
rename component XXXPanel -> XXXSection
This commit is contained in:
parent
95f4ba1856
commit
bab50fceda
9 changed files with 8 additions and 8 deletions
|
@ -15,7 +15,7 @@ const titlePhrases = Object.freeze({
|
||||||
[JwtTokenType.MachineToMachineAccessToken]: 'machine_to_machine_jwt',
|
[JwtTokenType.MachineToMachineAccessToken]: 'machine_to_machine_jwt',
|
||||||
});
|
});
|
||||||
|
|
||||||
function ScriptPanel() {
|
function ScriptSection() {
|
||||||
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
||||||
|
|
||||||
const { watch } = useFormContext<JwtClaimsFormType>();
|
const { watch } = useFormContext<JwtClaimsFormType>();
|
||||||
|
@ -38,4 +38,4 @@ function ScriptPanel() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ScriptPanel;
|
export default ScriptSection;
|
|
@ -14,7 +14,7 @@ enum Tab {
|
||||||
Test = 'test_tab',
|
Test = 'test_tab',
|
||||||
}
|
}
|
||||||
|
|
||||||
function SettingsPanel() {
|
function SettingsSection() {
|
||||||
const [activeTab, setActiveTab] = useState<Tab>(Tab.DataSource);
|
const [activeTab, setActiveTab] = useState<Tab>(Tab.DataSource);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -39,4 +39,4 @@ function SettingsPanel() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SettingsPanel;
|
export default SettingsSection;
|
|
@ -6,8 +6,8 @@ import { useTranslation } from 'react-i18next';
|
||||||
import CardTitle from '@/ds-components/CardTitle';
|
import CardTitle from '@/ds-components/CardTitle';
|
||||||
import TabNav, { TabNavItem } from '@/ds-components/TabNav';
|
import TabNav, { TabNavItem } from '@/ds-components/TabNav';
|
||||||
|
|
||||||
import ScriptPanel from './ScriptPanel';
|
import ScriptSection from './ScriptSection';
|
||||||
import SettingsPanel from './SettingsPanel';
|
import SettingsSection from './SettingsSection';
|
||||||
import { JwtTokenType } from './config';
|
import { JwtTokenType } from './config';
|
||||||
import * as styles from './index.module.scss';
|
import * as styles from './index.module.scss';
|
||||||
import { type JwtClaimsFormType } from './type';
|
import { type JwtClaimsFormType } from './type';
|
||||||
|
@ -62,8 +62,8 @@ function JwtClaims({ tab }: Props) {
|
||||||
: machineToMachineJwtClaimsForm)}
|
: machineToMachineJwtClaimsForm)}
|
||||||
>
|
>
|
||||||
<form className={classNames(styles.tabContent)}>
|
<form className={classNames(styles.tabContent)}>
|
||||||
<ScriptPanel />
|
<ScriptSection />
|
||||||
<SettingsPanel />
|
<SettingsSection />
|
||||||
</form>
|
</form>
|
||||||
</FormProvider>
|
</FormProvider>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue