Skip to content

Commit

Permalink
複数形式からのインポートの準備
Browse files Browse the repository at this point in the history
  • Loading branch information
chakkun1121 authored Jan 18, 2024
1 parent 2ba9cb0 commit 1a12647
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions app/(app)/app/ImportForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,28 @@ export default function ImportForm({
>
キャンセル
</button>
<button
className="flex-none rounded-full bg-gray-300 hover:bg-gray-400 p-4"
onClick={uploadWayakuFile}
>
和訳ファイルからのインポート
</button>
<div className="flex-none [&>ul]:hover:inline-block">
<p className="block rounded-full bg-gray-300 hover:bg-gray-400 p-4">
その他ファイルからのインポート
</p>
<ul className="absolute bg-gray-300 m-0 rounded-b hidden ">
{[
{
name: "和訳ファイル(.wayaku)",
onClick: uploadWayakuFile,
},
].map(({ name, onClick }, i) => (
<li className="list-none text-center relative " key={i}>
<button
onClick={onClick}
className="rounded hover:bg-gray-400 p-4"
>
{name}
</button>
</li>
))}
</ul>
</div>
<button
className="flex-1 rounded-full bg-gray-300 hover:bg-gray-400 p-4 disabled:bg-gray-400"
onClick={importFromBox}
Expand Down

0 comments on commit 1a12647

Please sign in to comment.