This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as actionTypes from './actionTypes'; | |
import * as WebAPI from './WebAPI'; | |
export const updateNavText = (text) => { | |
return { | |
type: actionTypes.UPDATE_NAV_TEXT, | |
value: text, | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.form__datatype { | |
display: flex; | |
justify-content: space-between; | |
} | |
.form__empty { | |
color: red; | |
} | |
.form__empty--submit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
import { Button, Modal, Form } from 'react-bootstrap'; | |
const EditingWindow = ({ onHide, show, post, status }) => { | |
const newPost = { title: '', author: '', body: '', } | |
const [thisPost, setThisPost] = useState(post ? post : newPost) | |
const changePost = (e) => { | |
setThisPost({ | |
...thisPost, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import './editingWindow.css'; | |
import { Button, Modal } from 'react-bootstrap'; | |
const EditingWindow = ({ onHide, show, state }) => ( | |
<Modal | |
size="lg" | |
aria-labelledby="contained-modal-title-vcenter" | |
centered | |
{...{ onHide, show }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.App { | |
text-align: center; | |
} | |
.page { | |
margin-top: 100px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.App { | |
text-align: center; | |
} | |
.page { | |
margin-top: 100px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.App { | |
text-align: center; | |
} | |
.page { | |
margin-top: 74px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
import Nav from './nav'; | |
import About from './about'; | |
import Home from './home'; | |
import Post from './post'; | |
const removeHashTag = str => { | |
return str.slice(1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.App { | |
text-align: center; | |
} | |
.page { | |
margin-top: 74px; | |
} |
NewerOlder