Skip to content
Snippets Groups Projects
Commit 29b43f79 authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

updated git ref story

parent cbd3eb16
No related branches found
No related tags found
No related merge requests found
Pipeline #183835 failed
......@@ -7,25 +7,43 @@ export default {
const exampleOptions = [
{
reference: "Version-1",
shortReference: "Version-1",
description: "",
commitDate: "2024-01-12T12:24:13.000+00:00"
reference: "V.1.0.0",
short_reference: "d03bbc5s",
description: "This is a TAG description",
commit_date: "2024-01-11T12:24:13.000+00:00",
type: "TAG"
},
{
reference: "d03bbc5aaffb888f0fa567b05bb620d38f0f39ef",
shortReference: "d03bbc5a",
short_reference: "d03bbc5a",
description: "Generated by CE template",
commitDate: "2024-01-12T12:24:13.000+00:00"
commit_date: "2024-01-12T12:24:13.000+00:00",
type: "COMMIT"
},
{
reference: "d03bbc5aaffb888f0fa567b05bb620d38f0f3hjehw",
short_reference: "d03bbhsa",
description:
"This is a very long commit description, This is a very long commit description, This is a very long commit description, This is a very long commit description, This is a very long commit description",
commit_date: "2024-01-13T12:24:13.000+00:00",
type: "COMMIT"
},
{
reference: "V.2.0.0",
short_reference: "d0ryfbc5s",
description:
"This is a very long tag description, This is a very long tag description, This is a very long tag description, This is a very long tag description, This is a very long tag description",
commit_date: "2024-01-21T12:24:13.000+00:00",
type: "TAG"
}
];
const Template = ({ loading, options, disabled, ...props }) => {
const onGitQueryValueSelect = (value) => {
const handleSelect = (value) => {
console.log({ onGitQueryValueSelect: value });
};
const onGitQueryStringChange = (value) => {
const handleOnChange = (value) => {
console.log({ onGitQueryStringChange: value });
};
......@@ -36,8 +54,8 @@ const Template = ({ loading, options, disabled, ...props }) => {
loading={loading}
options={options}
disabled={disabled}
onGitQueryValueSelect={onGitQueryValueSelect}
onGitQueryStringChange={onGitQueryStringChange}
onSelect={(_, value) => handleSelect(value)}
onInputChange={(_, value) => handleOnChange(value)}
{...props}
/>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment