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