mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-10 14:11:22 -06:00
chore: clean unused code
This commit is contained in:
parent
751f858109
commit
3c03d99a16
@ -32,7 +32,6 @@ function IndexPopup() {
|
|||||||
documentLink?: string;
|
documentLink?: string;
|
||||||
}>(null);
|
}>(null);
|
||||||
const isShowErrorMessage = message?.type === MESSAGE_TYPE.ERROR;
|
const isShowErrorMessage = message?.type === MESSAGE_TYPE.ERROR;
|
||||||
const isShowSuccessMessage = message?.type === MESSAGE_TYPE.SUCCESS;
|
|
||||||
|
|
||||||
const setErrorMessage = (message: string, documentLink?: string) => {
|
const setErrorMessage = (message: string, documentLink?: string) => {
|
||||||
setMessage({ type: MESSAGE_TYPE.ERROR, message, documentLink });
|
setMessage({ type: MESSAGE_TYPE.ERROR, message, documentLink });
|
||||||
@ -384,24 +383,6 @@ function IndexPopup() {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{isShowSuccessMessage && (
|
|
||||||
<div className="flex gap-2 items-center text-green-600 border border-green-600 p-1 rounded-md mt-2">
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
className="stroke-current flex-shrink-0 h-6 w-6"
|
|
||||||
fill="none"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeLinejoin="round"
|
|
||||||
strokeWidth="2"
|
|
||||||
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
<span>Success. Try again if no results found.</span>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user