* feishu app release (#85) * Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * perf: workflow ux * system config * feat: feishu app release * chore: sovle the conflicts files; fix the feishu entry * fix: rename Feishu interface to FeishuType * fix: fix type problem in app.ts * fix: type problem * fix: style problem --------- Co-authored-by: Archer <545436317@qq.com> * perf: publish channel code * change system variable position (#94) * perf: workflow context * perf: variable select * hide publish * perf: simple edit auto refresh * perf: simple edit data refresh * fix: target handle --------- Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
21 lines
630 B
TypeScript
21 lines
630 B
TypeScript
import React from 'react';
|
|
import { Button, Input, InputGroup, InputRightElement } from '@chakra-ui/react';
|
|
import { ViewOffIcon, ViewIcon } from '@chakra-ui/icons';
|
|
function HiddenInput(props: any) {
|
|
const [show, setShow] = React.useState(false);
|
|
return (
|
|
<>
|
|
<InputGroup>
|
|
<Input {...props} type={show ? 'text' : 'password'} />
|
|
<InputRightElement width="4.5rem">
|
|
<Button h="1.75rem" size="sm" onClick={() => setShow(!show)}>
|
|
{show ? <ViewOffIcon /> : <ViewIcon />}
|
|
</Button>
|
|
</InputRightElement>
|
|
</InputGroup>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default HiddenInput;
|