mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 05:19:51 +00:00
4.8-preview fix (#1324)
* 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>
This commit is contained in:
20
projects/app/src/components/common/HiddenInput/index.tsx
Normal file
20
projects/app/src/components/common/HiddenInput/index.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
Reference in New Issue
Block a user