mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
fix react-hook-form stuffs
This commit is contained in:
parent
fd7e2c2bda
commit
d69ef2b71e
8 changed files with 68 additions and 62 deletions
|
|
@ -58,7 +58,7 @@ export default function App() {
|
|||
headers: {
|
||||
'Authorization': JSON.stringify(localStorage.getItem("token")).slice(1, -1)
|
||||
}}).then ( res => res.json()
|
||||
).then (data => {
|
||||
).then (data => {
|
||||
localStorage.setItem('user', JSON.stringify(data));
|
||||
setIsSubmit(true);
|
||||
setIsLoading(false);
|
||||
|
|
@ -145,7 +145,7 @@ export default function App() {
|
|||
</BS.Form.Row>
|
||||
<BS.Form.Row>
|
||||
<BS.Col xs={12} lg={10}>
|
||||
<BS.Form.Control required name="pkToken" type="text" ref={register} placeholder="token" />
|
||||
<BS.Form.Control required name="pkToken" type="text" {...register("pkToken")} placeholder="token" />
|
||||
</BS.Col>
|
||||
<BS.Col>
|
||||
<BS.Button variant="primary" type="submit" block >Submit</BS.Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue