mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(console): auto expand dark logo field (#2782)
This commit is contained in:
parent
28f8e8a9a8
commit
2b2c5ecb7c
1 changed files with 2 additions and 2 deletions
|
@ -25,13 +25,13 @@ type Props = {
|
||||||
|
|
||||||
const ConnectorForm = ({ connector, isAllowEditTarget }: Props) => {
|
const ConnectorForm = ({ connector, isAllowEditTarget }: Props) => {
|
||||||
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
||||||
const { configTemplate, isStandard } = connector;
|
const { configTemplate, isStandard, logoDark } = connector;
|
||||||
const {
|
const {
|
||||||
control,
|
control,
|
||||||
register,
|
register,
|
||||||
formState: { errors },
|
formState: { errors },
|
||||||
} = useFormContext<ConnectorFormType>();
|
} = useFormContext<ConnectorFormType>();
|
||||||
const [darkVisible, setDarkVisible] = useState(false);
|
const [darkVisible, setDarkVisible] = useState(Boolean(logoDark));
|
||||||
|
|
||||||
const toggleDarkVisible = () => {
|
const toggleDarkVisible = () => {
|
||||||
setDarkVisible((previous) => !previous);
|
setDarkVisible((previous) => !previous);
|
||||||
|
|
Loading…
Reference in a new issue