Skip to content

Commit

Permalink
update readme shades & tints and tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Nov 6, 2023
1 parent 259bd3f commit eec1056
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
15 changes: 7 additions & 8 deletions ui/src/pages/Colors/ShadesAndTints/components/ColorInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ const ColorInputs: React.FC<ColorInputsProps> = ({
type="number"
style={{ width: 90 }}
/>
<Form.Item>
<ResponsiveButton
icon={<Icon name="RefreshCcw" />}
onClick={() => setColor(generateRandomColor())}
/>
</Form.Item>

<ResponsiveSelectWithLabel
label="Output separator"
Expand All @@ -97,26 +103,19 @@ const ColorInputs: React.FC<ColorInputsProps> = ({
/>

<ResponsiveSegementWithLabel
label="Copy options"
value={order}
onChange={(value: string | number) =>
setOrder(value as string)
}
options={SEGMENTED_OPTIONS}
/>

<Form.Item>
<Clipboard
text={clipboardText}
clipboardComponent={ClipboardButton}
/>
</Form.Item>

<Form.Item>
<ResponsiveButton
icon={<Icon name="RefreshCcw" />}
onClick={() => setColor(generateRandomColor())}
/>
</Form.Item>
</Space>
</Form>
</Card>
Expand Down
5 changes: 1 addition & 4 deletions ui/src/pages/Tools/Sorting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,9 @@ const Sorting: React.FC = () => {
const [dataType, setDataType] = useState("");

useEffect(() => {
const formattedStringArray = detection.parseData(input);
console.log(formattedStringArray);
detection.setData(input, true);
const dT = detection.detect();

const sortedData = sortData(formattedStringArray, order, dT);
const sortedData = sortData(detection.parseData(input), order, dT);
setOutput(sortedData.join(outputFormat.value));
setDataType(dT);
}, [input, order, outputFormat]);
Expand Down

0 comments on commit eec1056

Please sign in to comment.