-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from LMacPhail/auth
Auth
- Loading branch information
Showing
33 changed files
with
634 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
REACT_APP_API_ENDPOINT=https://api.futurelabourmps.com/ | ||
REACT_APP_API_COLS=A3:AZ70 | ||
REACT_APP_API_COLS=A3:AZ70 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
|
||
export const TextInput: React.FC<{ | ||
label: string; | ||
id: string; | ||
required?: boolean; | ||
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
value: string; | ||
disabled?: boolean; | ||
}> = ({ label, id, required = false, onChange, value, disabled = false }) => { | ||
return ( | ||
<label className="form-control w-full max-w-xs"> | ||
<div className="label"> | ||
<span className="label-text">{label}</span> | ||
</div> | ||
<input | ||
className="input input-sm input-bordered bg-inherit w-full max-w-xs" | ||
id={id} | ||
type="text" | ||
required={required} | ||
disabled={disabled} | ||
value={value} | ||
onChange={onChange} | ||
/> | ||
</label> | ||
); | ||
}; |
Oops, something went wrong.