Skip to content

Commit

Permalink
style:used deconstruction of props and changed import statement in st…
Browse files Browse the repository at this point in the history
…yles
  • Loading branch information
BuyankhuuTsCAl committed Oct 3, 2023
1 parent 998cf09 commit 505d1db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/app/components/InputFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import { FormHeaders, Input } from "../screens/loginScreen/styles"

export default function InputFields(props: { text: string, placeholder: string }) {
const { text, placeholder } = props;
return (
<main>
<div id="userInfo">
<FormHeaders>{props.text}</FormHeaders>
<Input type="text" placeholder={props.placeholder} />
<FormHeaders>{text}</FormHeaders>
<Input type="text" placeholder={placeholder} />
</div>
</main>

Expand Down
1 change: 1 addition & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use client'

import LoginForm from "./components/LoginForm";
import { GlobalStyle, Fullscreen, LoginBox, LoginContent, WelcomeSign, Button } from "./screens/loginScreen/styles"

Expand Down
3 changes: 1 addition & 2 deletions src/app/screens/loginScreen/styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createGlobalStyle } from "styled-components";
import styled from "styled-components";
import styled, { createGlobalStyle } from "styled-components";


export const GlobalStyle = createGlobalStyle`
Expand Down

0 comments on commit 505d1db

Please sign in to comment.