perf: btn color (#423)

This commit is contained in:
Archer
2023-10-24 13:19:23 +08:00
committed by GitHub
parent bf6dbfb245
commit 1942cb0d67
41 changed files with 350 additions and 221 deletions

View File

@@ -50,7 +50,7 @@ export const useEditTitle = ({
// eslint-disable-next-line react/display-name
const EditModal = useCallback(
() => (
({ maxLength = 30 }: { maxLength?: number }) => (
<MyModal isOpen={isOpen} onClose={onClose} title={title}>
<ModalBody>
{!!tip && (
@@ -64,7 +64,7 @@ export const useEditTitle = ({
defaultValue={defaultValue.current}
placeholder={placeholder}
autoFocus
maxLength={20}
maxLength={maxLength}
/>
</ModalBody>
<ModalFooter>