...continued
This commit is contained in:
@@ -426,7 +426,7 @@ export function ICalButtons(props) {
|
||||
const { token, clazz } = props;
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [success, setSuccess] = useState(false);
|
||||
const [setError] = useState(false);
|
||||
const [error, setError] = useState(false);
|
||||
|
||||
const handleDownload = (e) => {
|
||||
e.preventDefault();
|
||||
@@ -505,6 +505,7 @@ export function ICalButtons(props) {
|
||||
/>
|
||||
</Button.Group>
|
||||
}
|
||||
{error && <p>Error.</p>}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
@@ -56,7 +56,6 @@ function LabelForm(props) {
|
||||
const [input, setInput] = useState({ id: '107', size: '2' });
|
||||
const [label, setLabel] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [setSuccess] = useState(false);
|
||||
|
||||
const handleValues = (e, v) => setInput({ ...input, [v.name]: v.value });
|
||||
const handleChange = (e) => handleValues(e, e.currentTarget);
|
||||
@@ -74,7 +73,6 @@ function LabelForm(props) {
|
||||
})
|
||||
.then(res => {
|
||||
setLoading(false);
|
||||
setSuccess(true);
|
||||
setError(false);
|
||||
const imageObjectURL = URL.createObjectURL(res);
|
||||
setLabel(imageObjectURL);
|
||||
|
Reference in New Issue
Block a user