Skip to content

Commit

Permalink
fix(docs) : fix css for CTF component. (#4208)
Browse files Browse the repository at this point in the history
* Fix CSS for the CTF component.
  • Loading branch information
vivekjain23 authored Dec 5, 2024
1 parent 9f50d1c commit 067ebf3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/site/src/components/CTF/ctf-verifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
} from '@iota/dapp-kit';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { getFullnodeUrl, IotaClient } from '@iota/iota-sdk/client';
import clsx from 'clsx';

// Define props interface
interface ChallengeVerifierProps {
Expand Down Expand Up @@ -45,18 +46,19 @@ const ChallengeVerifier: React.FC<ChallengeVerifierProps> = ({ expectedObjectTyp
};

return (
<div>
<div className='flex items-center'>
<input
type="text"
value={inputText}
onChange={(e) => setInputText(e.target.value)}
placeholder="Enter Flag Object Id"
className="input-field mr-2"
/>
<button onClick={handleSubmit} disabled={loading}>
<button onClick={handleSubmit} className={clsx("button", { "button-disabled": loading })}>
{loading ? 'Loading...' : 'Submit'}
</button>

{error && <p style={{ color: 'red' }}>{error}</p>}
{error && <p className='text-red-500 text-center mb-0 ml-2'>{error}</p>}

{coins && (
<div>
Expand Down Expand Up @@ -90,4 +92,4 @@ const withProviders = (Component: React.FC<ChallengeVerifierProps>) => {
};

// Export the component wrapped in providers
export default withProviders(ChallengeVerifier);
export default withProviders(ChallengeVerifier);

0 comments on commit 067ebf3

Please sign in to comment.