Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Reuse InputPreview component in advanced search to avoid duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Oct 2, 2023
1 parent 8d69630 commit 28642cf
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/stories/Blocks/advanced-search/AdvancedSearch.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import Pagefold from "../../Library/pagefold/Pagefold";
import { Links } from "../../Library/links/Links";
import { InputWithDropdown } from "../../Library/input-with-dropdown/InputWithDropdown";
import { Multiselect } from "../../Library/multiselect/Multiselect";
import { Button } from "../../Library/Buttons/button/Button";
Expand Down Expand Up @@ -61,26 +59,7 @@ export const AdvancedSearch: React.FC<AdvancedSearchProps> = ({
Tilføj ny linje
</button>
</div>
<Pagefold
size="large"
isInheriting
isAContainer={false}
className="input-and-preview__preview"
>
<div className="text-body-medium-medium mb-24 capitalize-first">
CQL søgestreng
</div>
<p className="text-body-medium-regular mb-32">{cqlPreviewText}</p>
<section>
<button className="link-tag mr-16 capitalize-first">
Nulstil
</button>
<button className="link-tag mr-16 capitalize-first">
Kopier streng
</button>
<Links href="/" linkText="Rediger CQL" classNames="link-tag" />
</section>
</Pagefold>
<InputPreview cqlPreviewText={cqlPreviewText} />
</div>
<section className="advanced-search__filters">
{Array(3)
Expand Down

0 comments on commit 28642cf

Please sign in to comment.