Skip to content

Commit

Permalink
feat: Regex button
Browse files Browse the repository at this point in the history
  • Loading branch information
SunwooJaeho committed Nov 18, 2024
1 parent 0a9ee92 commit 1bb1294
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/home/TopControlPanel/TopButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button } from '@components/common/Button/Button';
import { PiCircuitry, PiSirenFill } from 'react-icons/pi';
import { FaBook } from 'react-icons/fa6';
import { IoClose, IoReload } from 'react-icons/io5';
import { IoClose, IoFilter, IoReload } from 'react-icons/io5';
import { useCallback } from 'react';
import { useSetSelectedModalStore } from '@store/modal-type';
import { useSetSelectedCaseStore } from '@store/selected-case';
Expand Down Expand Up @@ -83,10 +83,19 @@ const ReloadButton = () => (
</Button>
);

const RegexButton = () => {
return (
<Button icon={<IoFilter />} color="black" className="font-semibold">
Regex 필터
</Button>
);
};

export {
InputAccidentModalButton,
InputLawModalButton,
ApplyPresetButton,
ClearAllButton,
ReloadButton,
RegexButton,
};
2 changes: 2 additions & 0 deletions src/components/home/TopControlPanel/TopControlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
ClearAllButton,
InputAccidentModalButton,
InputLawModalButton,
RegexButton,
ReloadButton,
} from './TopButtons';

Expand All @@ -13,6 +14,7 @@ const TopControlPanel = () => {
<InputAccidentModalButton />
<InputLawModalButton />
<ApplyPresetButton />
<RegexButton />
</div>

<div className="flex items-center gap-2">
Expand Down

0 comments on commit 1bb1294

Please sign in to comment.