Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila Vizelka committed Oct 2, 2023
1 parent f051040 commit ec962c0
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/components/button/button.tmpl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const button = `
<button class="button-styled">{{ text }}</button>
`
`
2 changes: 1 addition & 1 deletion src/components/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ type ButtonProps = {
}
export const Button = (props: ButtonProps) => {
return HandleBars.compile(button)(props)
}
}
2 changes: 1 addition & 1 deletion src/components/input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export type InputProps = {
}
export const Input = (props: InputProps) => {
return HandleBars.compile(input)(props);
}
}
19 changes: 8 additions & 11 deletions src/components/input/input.tmpl.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@

export const input = `
<div class="fields-list">
{{#each this}}
<input class="input-styled" type={{type}} placeholder={{placeholder}} required/>
{{/each}}
</div>
<div class="fields-list">
{{#each this}}
<input class="input-styled" type={{type}} placeholder={{placeholder}} required/>
{{/each}}
</div>
`

2 changes: 1 addition & 1 deletion src/components/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ type LinkProps = {
}
export const Link = (props: LinkProps ) => {
return HandleBars.compile(link)(props);

}


2 changes: 1 addition & 1 deletion src/components/link/link.tmpl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const link = `
<a class = "link-styled" href={{ to }}>{{{ content }}}</a>
`
`
3 changes: 1 addition & 2 deletions src/components/logo/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import HandleBars from "handlebars";
import { logo } from "./logo.tmpl.ts";


export const Logo = () => {
return HandleBars.compile(logo)({});
}
}
3 changes: 1 addition & 2 deletions src/components/logo/logo.tmpl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const logo = `
<img class="logo" src="/assets/header-logo.svg" alt="header-logo"/>
`
`
2 changes: 1 addition & 1 deletion src/components/title/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export const Title = (props: TitleProps) => {
return HandleBars.compile(title)({
title: props.title
})
}
}
2 changes: 1 addition & 1 deletion src/components/title/title.tmpl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const title = `
<h2 class="title-styled">{{ title }}</h2>
`
`

0 comments on commit ec962c0

Please sign in to comment.