mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -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 { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
|
||||
const { configTemplate, isStandard } = connector;
|
||||
const { configTemplate, isStandard, logoDark } = connector;
|
||||
const {
|
||||
control,
|
||||
register,
|
||||
formState: { errors },
|
||||
} = useFormContext<ConnectorFormType>();
|
||||
const [darkVisible, setDarkVisible] = useState(false);
|
||||
const [darkVisible, setDarkVisible] = useState(Boolean(logoDark));
|
||||
|
||||
const toggleDarkVisible = () => {
|
||||
setDarkVisible((previous) => !previous);
|
||||
|
|
Loading…
Reference in a new issue