aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/FFXIVWorldSelector.tsx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-08-23 15:53:38 -0700
committerPinapelz <yukais@pinapelz.com>2024-08-23 15:53:38 -0700
commitba51582e825477bec23c2aa37ba43bd6482a2a29 (patch)
treed3bf8d3cbfd826edc89e6369e07bff136162feaa /src/components/FFXIVWorldSelector.tsx
parente970aa7a26fecfa38041bb1cfa59a1d5f40a0194 (diff)
implement itemprice component
Diffstat (limited to 'src/components/FFXIVWorldSelector.tsx')
-rw-r--r--src/components/FFXIVWorldSelector.tsx17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/components/FFXIVWorldSelector.tsx b/src/components/FFXIVWorldSelector.tsx
index f2dc4cc..63eff07 100644
--- a/src/components/FFXIVWorldSelector.tsx
+++ b/src/components/FFXIVWorldSelector.tsx
@@ -1,11 +1,15 @@
import React, { useState, useEffect } from 'react';
-
+import '../styles/ffxiv-selector.css';
interface World {
id: number;
name: string;
}
-const FFXIVWorldSelector: React.FC = () => {
+interface FFXIVWorldSelectorProps {
+ message: string;
+}
+
+const FFXIVWorldSelector: React.FC<FFXIVWorldSelectorProps> = ({ message = "Select a World" }) => {
const [worlds, setWorlds] = useState<World[]>([]);
const [selectedWorld, setSelectedWorld] = useState<string | null>(null);
@@ -40,9 +44,9 @@ const FFXIVWorldSelector: React.FC = () => {
};
return (
- <div>
- <label htmlFor="world-select">Select a world: </label>
- <select id="world-select" onChange={handleWorldChange} value={selectedWorld || ''}>
+ <div className="ffxiv-container">
+ <label htmlFor="world-select" className="ffxiv-label">{message}</label>
+ <select id="world-select" onChange={handleWorldChange} value={selectedWorld || ''} className="ffxiv-select">
<option value="">--Please choose an option--</option>
{worlds.map((world) => (
<option key={world.id} value={world.name}>
@@ -50,8 +54,7 @@ const FFXIVWorldSelector: React.FC = () => {
</option>
))}
</select>
- {selectedWorld && <p>Selected World: {selectedWorld}</p>}
- <button onClick={handleApplyClick}>Apply</button>
+ <button onClick={handleApplyClick} className="ffxiv-button">Apply</button>
</div>
);
};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage